OBJECT

Constraint

Constraint a graph primitive used to validate custom doc/connection constraints

link GraphQL Schema definition

  • type Constraint {
  • # 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!
  • }