Last active
July 21, 2017 17:10
-
-
Save marktani/3996ce23e043087d382c4cd86ee309cb to your computer and use it in GitHub Desktop.
Query multiple thousand nodes in the same GraphQL document
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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