Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobvanluijt/114fd2b843e5c9eb5bc03d417cc2c53d to your computer and use it in GitHub Desktop.
Save bobvanluijt/114fd2b843e5c9eb5bc03d417cc2c53d to your computer and use it in GitHub Desktop.
Operator for And and And Or operations
{
Local{
Get{
Things{
Place(where:{
operator:And
operands:[
{
operator:Equal
path:["rating"]
valueNumber: 3.5
}, {
operator:Equal
path:["metroId"]
valueString:"0"
},{
operator:Or
operands: [{
operator: Equal
path: ["OfBranchType", "BranchType", "name"]
valueString:"Coffee Shop"
}, {
operator: Equal
path: ["OfBranchType", "BranchType", "name"]
valueString: "Bakery"
}]
}
]
}, limit: 1){
name
rating
OfBranchType{
... on BranchType{
name
normalisedName
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment