Graph search · GraphQL type

SearchQueryExpressionPayload type

Output mirror of SearchQueryExpressionInput, echoing a structured where clause back on GraphSearchQueryInputPayload. GraphQL cannot return an input type, so the shape is duplicated rather than shared.

It mirrors what the caller supplied, not what validation resolved: there is no keyType or multiKey, and keys appear in the casing they were sent in. A client can therefore take a search job's requested input and resubmit it unchanged.

The resolved tree — case-corrected keys, field types, multi-key flags — is available only from graphParseQuery, which returns the SearchQueryExpression interface types. It parses a where-clause STRING and has no structured-expression input, so that route is open only to a client holding the string encoding; there is no resolution path for an expression this payload echoed back.

Fields

Field Name Description
expressionType - SearchQueryExpressionType! Names which variant field below carries this node.
operatorExpression - SearchQueryOperatorExpressionPayload The node when expressionType is OPERATOR.
keyValue - SearchQueryMatchKeyValueExpressionPayload The node when expressionType is KEY_VALUE.
keyValueNumeric - SearchQueryMatchKeyValueNumericExpressionPayload The node when expressionType is KEY_VALUE_NUMERIC.
keyValueTime - SearchQueryMatchKeyValueTimeExpressionPayload The node when expressionType is KEY_VALUE_TIME.
keyValueBoolean - SearchQueryMatchKeyValueBooleanExpressionPayload The node when expressionType is KEY_VALUE_BOOLEAN.
keyValueFullText - SearchQueryMatchTextExpressionPayload The node when expressionType is KEY_VALUE_FULL_TEXT.
keyNull - SearchQueryMatchKeyNullExpressionPayload The node when expressionType is KEY_NULL.

Used by

Example

Example

{
  "expressionType": "OPERATOR",
  "operatorExpression": SearchQueryOperatorExpressionPayload,
  "keyValue": SearchQueryMatchKeyValueExpressionPayload,
  "keyValueNumeric": SearchQueryMatchKeyValueNumericExpressionPayload,
  "keyValueTime": SearchQueryMatchKeyValueTimeExpressionPayload,
  "keyValueBoolean": SearchQueryMatchKeyValueBooleanExpressionPayload,
  "keyValueFullText": SearchQueryMatchTextExpressionPayload,
  "keyNull": SearchQueryMatchKeyNullExpressionPayload
}