Answer the question
In order to leave comments, you need to log in
Tell us about GraphQL?
Please tell us about GraphQL and how you prepare it. I got acquainted with the documentation, this thing interested me, but it seems to me that it is very empty. How do you use conditions when sampling, set limits, etc. etc. Please share your knowledge.
Answer the question
In order to leave comments, you need to log in
I like the Relay approach for pagination . Actually, it doesn’t really differ from other sampling conditions, something like this:
query {
users(first: 10, order: "id") {
totalCount,
edges {
cursor,
node {
id,
name,
lastAt,
avatar {
original,
preview
}
}
},
pageInfo {
startCursor,
endCursor,
hasNextPage,
hasPreviousPage
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question