View Source argo_graphql_variable_definition (argo v1.0.2)

Summary

Types

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

Functions

Link to this function

add_directive_const(VariableDefinition, DirectiveConst)

View Source
-spec add_directive_const(VariableDefinition, DirectiveConst) -> VariableDefinition
                       when
                           VariableDefinition :: 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(LanguageVariableDefinition)

View Source
-spec from_language(LanguageVariableDefinition) -> VariableDefinition
                 when
                     LanguageVariableDefinition :: argo_graphql_language_variable_definition:t(),
                     VariableDefinition :: t().
-spec new(VariableName, Type) -> VariableDefinition
       when
           VariableName :: argo_types:name(),
           Type :: argo_graphql_type:t(),
           VariableDefinition :: t().
Link to this function

set_default_value(VariableDefinition, OptionDefaultValue)

View Source
-spec set_default_value(VariableDefinition, OptionDefaultValue) -> VariableDefinition
                     when
                         VariableDefinition :: t(),
                         OptionDefaultValue :: none | {some, argo_graphql_value_const:t()}.