Last active
August 13, 2017 13:26
-
-
Save martijnwalraven/415b8c466f481ad3310e650a92e4f1d9 to your computer and use it in GitHub Desktop.
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
"__schema": { | |
"types": [ | |
{ | |
"kind": "UNION", | |
"name": "ContentNode", | |
"possibleTypes": [ | |
{ | |
"name": "Element" | |
}, | |
{ | |
"name": "Text" | |
}, | |
{ | |
"name": "Embed" | |
} | |
] | |
} | |
} | |
} |
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
{ | |
viewer { | |
post(id: "UG9zdDoyNjk2") { | |
id | |
title { | |
rendered | |
} | |
content { | |
rendered | |
data { | |
...ContentNode_content_data | |
... on Element { | |
children { | |
...ContentNode_content_data | |
... on Element { | |
children { | |
...ContentNode_content_data | |
... on Element { | |
children { | |
...ContentNode_content_data | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
fragment ContentNode_content_data on ContentNode { | |
__typename | |
... on Embed { | |
...Embed_node | |
} | |
... on Text { | |
text | |
} | |
... on Element { | |
...Element_node | |
} | |
} | |
fragment Element_node on Element { | |
tagName | |
attributes { | |
name | |
value | |
} | |
} | |
fragment Embed_node on Embed { | |
title | |
thumbnailUrl | |
html | |
width | |
height | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment