Skip to content

How to order objects of multi-links returned in subshapes #5522

Closed Answered by tailhook
mabagoury asked this question in Q&A
Discussion options

You must be logged in to vote

It works by desugaring link name into a full-blown select:

select Question {
  id,
  title,
  comments := (
    SELECT .comments {
      id,
      content,
      date_created,
    }
    ORDER BY .date_created
  )
}
filter .id = <uuid>$question_id

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@elprans
Comment options

Answer selected by mabagoury
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@tailhook
Comment options

@mabagoury
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants