View Source argo_graphql_field_definition (argo v1.0.2)

Summary

Types

-type t() :: #argo_graphql_field_definition{}.

Functions

Link to this function

add_argument_definition(FieldDefinition, InputValueDefinition)

View Source
-spec add_argument_definition(FieldDefinition, InputValueDefinition) -> FieldDefinition
                           when
                               FieldDefinition :: t(),
                               InputValueDefinition :: argo_graphql_input_value_definition:t().
Link to this function

add_directive_const(FieldDefinition, DirectiveConst)

View Source
-spec add_directive_const(FieldDefinition, DirectiveConst) -> FieldDefinition
                       when
                           FieldDefinition :: t(),
                           DirectiveConst :: argo_graphql_directive_const:t().
-spec builtin(FieldName) -> {ok, FieldDefinition} | error
           when FieldName :: argo_types:name(), FieldDefinition :: t().
Link to this function

format(Formatter1, Type)

View Source
-spec format(Formatter1, Type :: t()) -> Formatter2
          when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
Link to this function

from_language(LanguageFieldDefinition)

View Source
-spec from_language(LanguageFieldDefinition) -> FieldDefinition
                 when
                     LanguageFieldDefinition :: argo_graphql_language_field_definition:t(),
                     FieldDefinition :: t().
-spec new(Name, Type) -> FieldDefinition
       when Name :: argo_types:name(), Type :: argo_graphql_type:t(), FieldDefinition :: t().
Link to this function

set_description(FieldDefinition, OptionDescription)

View Source
-spec set_description(FieldDefinition, OptionDescription) -> FieldDefinition
                   when
                       FieldDefinition :: t(),
                       OptionDescription :: none | {some, unicode:unicode_binary()}.