File size: 1,956 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
extend type Query {
expr: Expr! @experimental(flagName: "univ-keys")
}
"""
Expr contains helpers for working with Expr expressions.
"""
type Expr {
"""
exprToCondition converts an Expr expression to a Condition.
"""
exprToCondition(input: ExprToConditionInput!): Condition!
@goField(forceResolver: true)
"""
conditionToExpr converts a Condition to an Expr expression.
"""
conditionToExpr(input: ConditionToExprInput!): String!
@goField(forceResolver: true)
}
"""
ExprExpression is a scalar type that represents an Expr expression.
"""
scalar ExprExpression
"""
ExprBooleanExpression is a scalar type that represents an Expr expression that evaluates to a boolean.
"""
scalar ExprBooleanExpression
"""
ExprStringExpression is a scalar type that represents an Expr expression that evaluates to a string.
"""
scalar ExprStringExpression
"""
ExprValue is a scalar type that represents an Expr value.
"""
scalar ExprValue
"""
ExprIdentifier is a scalar type that represents an Expr identifier.
"""
scalar ExprIdentifier
"""
ExprOperator is a scalar type that represents an Expr operator.
"""
scalar ExprOperator
input ExprToConditionInput {
expr: ExprBooleanExpression!
}
type Condition {
clauses: [Clause!]!
}
type Clause {
field: ExprIdentifier!
operator: ExprOperator!
"""
Value is a constant value that the field should be compared against.
"""
value: ExprValue!
"""
Negate indicates whether the clause should be negated (e.g., not contains vs. contains).
"""
negate: Boolean!
}
input ConditionToExprInput {
condition: ConditionInput!
}
input ConditionInput {
clauses: [ClauseInput!]!
}
input ClauseInput {
field: ExprIdentifier!
operator: ExprOperator!
"""
Value is a constant value that the field should be compared against.
"""
value: ExprValue!
"""
Negate indicates whether the clause should be negated (e.g., not contains vs. contains).
"""
negate: Boolean!
}
|