Skip to content

Instantly share code, notes, and snippets.

@marktani
Last active July 21, 2017 17:10
Show Gist options
  • Save marktani/3996ce23e043087d382c4cd86ee309cb to your computer and use it in GitHub Desktop.
Save marktani/3996ce23e043087d382c4cd86ee309cb to your computer and use it in GitHub Desktop.
Query multiple thousand nodes in the same GraphQL document
query {
p01: allArticles(first: 1000, skip: 0) {
... ArticleInfo
}
p02: allArticles(first: 1000, skip: 1000) {
... ArticleInfo
}
p03: allArticles(first: 1000, skip: 2000) {
... ArticleInfo
}
p04: allArticles(first: 1000, skip: 3000) {
... ArticleInfo
}
p05: allArticles(first: 1000, skip: 4000) {
... ArticleInfo
}
}
fragment ArticleInfo on Article {
id
title
description
createdAt
url
isPublished
}
fragment ArticleInfo on Article {
id
title
description
createdAt
url
isPublished
author {
id
name
address {
id
city
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment