Created
October 15, 2017 00:12
-
-
Save samueljoli/4d07485000d416a4cdfc31caad4a233d to your computer and use it in GitHub Desktop.
Query for recursive property
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 { | |
somequerytype() { | |
arrayWithRecursiveObjects { | |
prop1 | |
prop2 | |
...recursiveProperty | |
} | |
} | |
} | |
fragment facetsRecurse on Facets { | |
recursiveProperty { | |
...objectFields | |
recursiveProperty{ | |
...objectFields | |
recursiveProperty { | |
...objectFields | |
recursiveProperty { | |
...objectFields | |
} | |
} | |
} | |
} | |
} | |
fragment objectFields on RecursiveDataType { | |
key1 | |
key2 | |
key3 { | |
prop1 | |
prop2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment