INPUT_OBJECT

ConstraintInput

ConstraintInput is used to construct a new constraint

link GraphQL Schema definition

  • input ConstraintInput {
  • # name is the unique name of the constraint
  • name: String!
  • # gtype is the type of object the constraint will be applied to (ex: user)
  • gtype: String!
  • # expression is a boolean CEL expression used to evaluate the doc/connection
  • expression: String!
  • # if target_docs is true, this constraint will be applied to documents.
  • target_docs: Boolean!
  • # if target_connections is true, this constraint will be applied to connections.
  • target_connections: Boolean!
  • }