TypedGql.Schema.Directive (TypedGql v0.13.0)

Copy Markdown View Source

A directive a loaded schema declares, along with the locations it may be applied to.

Summary

Types

location()

@type location() ::
  :query
  | :mutation
  | :subscription
  | :field
  | :fragment_definition
  | :fragment_spread
  | :inline_fragment
  | :variable_definition
  | :schema
  | :scalar
  | :object
  | :field_definition
  | :argument_definition
  | :interface
  | :union
  | :enum
  | :enum_value
  | :input_object
  | :input_field_definition

t()

@type t() :: %TypedGql.Schema.Directive{
  args: %{required(String.t()) => TypedGql.Schema.InputValue.t()},
  description: String.t() | nil,
  locations: [location()],
  name: String.t()
}