View Source argo_graphql_field (argo v1.0.2)

Summary

Types

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

Functions

Link to this function

add_argument(Field, Argument)

View Source
-spec add_argument(Field, Argument) -> Field when Field :: t(), Argument :: argo_graphql_argument:t().
Link to this function

add_directive(Field, Directive)

View Source
-spec add_directive(Field, Directive) -> Field
                 when Field :: t(), Directive :: argo_graphql_directive:t().
Link to this function

add_selection(Field, Selection)

View Source
-spec add_selection(Field, Selection) -> Field
                 when Field :: t(), Selection :: argo_graphql_selection_set:selection().
Link to this function

find_field(Field, FieldAliasOrName, ExecutableDocument)

View Source
-spec find_field(Field, FieldAliasOrName, ExecutableDocument) -> {ok, Field} | error
              when
                  Field :: t(),
                  FieldAliasOrName :: argo_types:name(),
                  ExecutableDocument :: argo_graphql_executable_document:t().
Link to this function

fold_fields(Field, AccIn, Fun, ExecutableDocument)

View Source
-spec fold_fields(Field, AccIn, Fun, ExecutableDocument) -> AccOut
               when
                   Field :: t(),
                   AccIn :: dynamic(),
                   Fun :: argo_graphql_selection_set:fold_fields_func(AccIn, AccOut),
                   ExecutableDocument :: argo_graphql_executable_document:t(),
                   AccOut :: dynamic().
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(LanguageField)

View Source
-spec from_language(LanguageField) -> Field
                 when LanguageField :: argo_graphql_language_field:t(), Field :: t().
Link to this function

get_shape(Field, ExecutableDocument)

View Source
-spec get_shape(Field, ExecutableDocument) -> Shape
             when
                 Field :: t(),
                 ExecutableDocument :: argo_graphql_executable_document:t(),
                 Shape :: argo_graphql_selection_set:shape().
-spec new(Name) -> Field when Name :: argo_types:name(), Field :: t().
Link to this function

set_alias(Field, OptionAlias)

View Source
-spec set_alias(Field, OptionAlias) -> Field
             when Field :: t(), OptionAlias :: none | {some, unicode:unicode_binary()}.