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 Serializable
trait Product
trait Equals
trait WithComments
trait Definition
trait AstNode
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
AstNode

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product