Last active
October 13, 2015 04:12
-
-
Save nickretallack/6f4228e9cddd692505ad to your computer and use it in GitHub Desktop.
Why does it do a second query instead of re-using the result?
This file contains 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 on Viewer { | |
files(first: 10) { | |
edges { | |
node { | |
id, | |
url, | |
}, | |
}, | |
}, | |
} |
This file contains 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 on Viewer { | |
file(id: $file_id) { | |
id, | |
url, | |
}, | |
} |
This file contains 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 { viewer } |
This file contains 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
{ | |
"data": { | |
"viewer": { | |
"id": "Vmlld2VyOnZpZXdlcg==", | |
"_fileshv8l8m": { | |
"edges": [ | |
{ | |
"node": { | |
"id": "RmlsZTox", | |
"url": "/files/1868919c13bae00c9ae96b77016a6304308fd498fc900793319936bd6813394f.png" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjA=" | |
}, | |
{ | |
"node": { | |
"id": "RmlsZToy", | |
"url": "/files/c05837255446c35af9c86eb20f968f81a9bf86a7eed98561d64674c95e5604db.png" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjE=" | |
}, | |
{ | |
"node": { | |
"id": "RmlsZToz", | |
"url": "/files/009cb233a0e29fbac9b6bbe5fa538075f8d8c34ed8e83059dd6fae24f8108229.png" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjI=" | |
}, | |
{ | |
"node": { | |
"id": "RmlsZTo0", | |
"url": "/files/0e3c644298a99ccf023236cdfa04125cea498fb3187e506aa7119338a6594793.png" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjM=" | |
}, | |
{ | |
"node": { | |
"id": "RmlsZTo2", | |
"url": "/files/fd77925a2750f12529ece6d19e7b5c00e4f24fc9ce4c560067efe50c7ca1c21f.png" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjQ=" | |
}, | |
{ | |
"node": { | |
"id": "RmlsZTo5", | |
"url": "/files/2c426d9ab8fc4c4ca08838ce4b0d3015bb6256c9d31730d4b40d4dd6d4ca9068.png" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjU=" | |
}, | |
{ | |
"node": { | |
"id": "RmlsZToxMA==", | |
"url": "/files/37c1d8f16845fc9493484f21e654c0304644ee79ddde5687f84ed02605b29ea1.png" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjY=" | |
}, | |
{ | |
"node": { | |
"id": "RmlsZToxMQ==", | |
"url": "/files/694b3d17fd81f9d0a31038c059dbf4d8af572477e0495fbb1cd2d846a14c18e5.png" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjc=" | |
}, | |
{ | |
"node": { | |
"id": "RmlsZToxMw==", | |
"url": "/files/e639caf199f4b5d1d57103e9d9b84d1b8323a03571f700e29cc8e93031ecabe5.jpg" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjg=" | |
}, | |
{ | |
"node": { | |
"id": "RmlsZToxNA==", | |
"url": "/files/200bcef1576b817498b4c2f2472f378dc23d7fa83725dbb47dd88f1712c0956e.png" | |
}, | |
"cursor": "YXJyYXljb25uZWN0aW9uOjk=" | |
} | |
], | |
"pageInfo": { | |
"hasNextPage": true, | |
"hasPreviousPage": false | |
} | |
} | |
} | |
} | |
} |
This file contains 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
{ | |
"data": { | |
"viewer": { | |
"id": "Vmlld2VyOnZpZXdlcg==", | |
"_filem0dvu1": { | |
"id": "RmlsZTox", | |
"url": "/files/1868919c13bae00c9ae96b77016a6304308fd498fc900793319936bd6813394f.png" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment