Introduction - Stability - Core - CLI - Query API
Use condition:
to filter a result set by matching argument:
query {
allCupActs(condition: { act: BITE }) {
...
}
}
For more complex comparisons use the filter:
argument:
Comparison operator with array input:
query {
allCups(filter: { id: { in: [1, 2] } }) {
...
}
}
Comparison operator with scalar input:
query {
allCups(filter: { time: { greaterThan: "2018-01-01" } }) {
...
}
}
Multiple comparison operators:
query {
allCups(filter: {
act: { equalTo: "lock" },
time: { greaterThan: "2018-01-01" }
}) {
...
}
}