Skip to content

Instantly share code, notes, and snippets.

@samueljoli
Created October 15, 2017 00:12
Show Gist options
  • Save samueljoli/4d07485000d416a4cdfc31caad4a233d to your computer and use it in GitHub Desktop.
Save samueljoli/4d07485000d416a4cdfc31caad4a233d to your computer and use it in GitHub Desktop.
Query for recursive property
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