Skip to content

Instantly share code, notes, and snippets.

@rakyll
Created July 11, 2014 23:17
Show Gist options
  • Save rakyll/9d6d8b7aa7a3b05b7eba to your computer and use it in GitHub Desktop.
Save rakyll/9d6d8b7aa7a3b05b7eba to your computer and use it in GitHub Desktop.
HAS_ANCESTOR queries
{
"projection": [],
"kinds": [{
"name": "Company"
}],
"filter": {
"compositeFilter": {
"filters": [{
"propertyFilter": {
"property": {
"name": "__key__"
},
"operator": "HAS_ANCESTOR",
"value": {
"properties": {
"keyValue": {
"path": [{
"kind": "Name",
"id": 123
}],
"partitionId": {
"namespace": "Namespace"
}
}
}
}
}
}],
"operator": "AND"
}
},
"order": [],
"groupBy": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment