View Source Absinthe.Type.Directive (absinthe v1.7.6)
Used by the GraphQL runtime as a way of modifying execution behavior.
Type system creators will usually not create these directly.
@type location() :: :query | :mutation | :field | :fragment_definition | :fragment_spread | :inline_fragment
A defined directive.
:name- The name of the directive. Should be a lowercase
binary. Set automatically.
:description- A nice description for introspection.
:args- A map of
:locations- A list of places the directives can be used.
:repeatable- A directive may be defined as repeatable by including the “repeatable” keyword
:__reference__ key is for internal use.