View Source argo_graphql_inline_fragment (argo v1.0.8)

Summary

Types

-type t() ::
    #argo_graphql_inline_fragment{selection_set :: argo_graphql_selection_set:t(),
                                  type_condition :: none | {some, argo_types:name()},
                                  directives :: argo_graphql_directives:t()}.

Functions

Link to this function

add_directive(InlineFragment, Directive)

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

add_selection(InlineFragment, Selection)

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

find_field(InlineFragment, FieldAliasOrName, ExecutableDocument)

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

fold_fields(InlineFragment, AccIn, Fun, ExecutableDocument)

View Source
-spec fold_fields(InlineFragment, AccIn, Fun, ExecutableDocument) -> AccOut
               when
                   InlineFragment :: 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(LanguageInlineFragment)

View Source
-spec from_language(LanguageInlineFragment) -> InlineFragment
                 when
                     LanguageInlineFragment :: argo_graphql_language_inline_fragment:t(),
                     InlineFragment :: t().
Link to this function

get_shape(InlineFragment, ExecutableDocument)

View Source
-spec get_shape(InlineFragment, ExecutableDocument) -> Shape
             when
                 InlineFragment :: t(),
                 ExecutableDocument :: argo_graphql_executable_document:t(),
                 Shape :: argo_graphql_selection_set:shape().
-spec new(SelectionSet) -> InlineFragment
       when SelectionSet :: argo_graphql_selection_set:t(), InlineFragment :: t().
Link to this function

set_type_condition(InlineFragment, OptionTypeCondition)

View Source
-spec set_type_condition(InlineFragment, OptionTypeCondition) -> InlineFragment
                      when
                          InlineFragment :: t(),
                          OptionTypeCondition :: none | {some, unicode:unicode_binary()}.