OperationDefinition
sangria.ast.OperationDefinition
case class OperationDefinition(operationType: OperationType, name: Option[String], variables: Vector[VariableDefinition], directives: Vector[Directive], selections: Vector[Selection], comments: Vector[Comment], trailingComments: Vector[Comment], location: Option[AstLocation]) extends Definition, WithDirectives, SelectionContainer
A definition of a GraphQL operation.
Every GraphQL request invokes a specific operation, possibly with values to substitute into the operation's variables.
Value parameters
- name
-
The name of the operation. Optional only if there is only one operation in the document. Used for selecting the specific operation to invoke in a GraphQL request.
- variables
-
The variables that must be substituted into the operation. Values for these must be provided either by their defaults or with the GraphQL request.
Attributes
- See also
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SelectionContainertrait WithTrailingCommentstrait WithCommentstrait WithDirectivestrait Definitiontrait AstNodeclass Objecttrait Matchableclass Any
Members list
In this article