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 with WithDirectives with SelectionContainer

A definition of a GraphQL operation.

Every GraphQL request invokes a specific operation, possibly with values to substitute into the operation's variables.

Attributes

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.

See also:
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait AstNode
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

Attributes

Inherited from:
AstNode

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product