Created
June 13, 2019 11:28
-
-
Save bobvanluijt/114fd2b843e5c9eb5bc03d417cc2c53d to your computer and use it in GitHub Desktop.
Operator for And and And Or operations
This file contains hidden or 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
{ | |
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