Dai 1.0

Introduction - Stability - Core - CLI - Query API

Condition

Use condition: to filter a result set by matching argument:

query {
  allCupActs(condition: { act: BITE }) {
    ...
  }
}

Filter

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" }
  }) {
    ...
  }
}

Operators

  • null
  • equalTo
  • notEqualTo
  • lessThan
  • lessThanOrEqualTo
  • greaterThan
  • greaterThanOrEqualTo
  • in
  • notIn