View Source argo_graphql_input_value_definition (argo v1.0.10)

Summary

Types

-type t() ::
    #argo_graphql_input_value_definition{name :: argo_types:name(),
                                         type :: argo_graphql_type:t(),
                                         description :: none | {some, unicode:unicode_binary()},
                                         directives :: argo_graphql_directives_const:t(),
                                         default_value ::
                                             none | {some, argo_graphql_value_const:t()}}.

Functions

Link to this function

add_directive_const(InputValueDefinition, DirectiveConst)

View Source
-spec add_directive_const(InputValueDefinition, DirectiveConst) -> InputValueDefinition
                       when
                           InputValueDefinition :: t(),
                           DirectiveConst :: argo_graphql_directive_const: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(LanguageInputValueDefinition)

View Source
-spec from_language(LanguageInputValueDefinition) -> InputValueDefinition
                 when
                     LanguageInputValueDefinition ::
                         argo_graphql_language_input_value_definition:t(),
                     InputValueDefinition :: t().
Link to this function

is_required(InputValueDefinition)

View Source
-spec is_required(InputValueDefinition) -> boolean() when InputValueDefinition :: t().
-spec new(Name, Type) -> InputValueDefinition
       when Name :: argo_types:name(), Type :: argo_graphql_type:t(), InputValueDefinition :: t().
Link to this function

set_default_value(InputValueDefinition, OptionDefaultValue)

View Source
-spec set_default_value(InputValueDefinition, OptionDefaultValue) -> InputValueDefinition
                     when
                         InputValueDefinition :: t(),
                         OptionDefaultValue :: none | {some, argo_graphql_value_const:t()}.
Link to this function

set_description(InputValueDefinition, OptionDescription)

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