View Source argo_graphql_field (argo v1.0.6)
Summary
Types
-type t() :: #argo_graphql_field{name :: argo_types:name(), alias :: none | {some, argo_types:name()}, arguments :: argo_graphql_arguments:t(), directives :: argo_graphql_directives:t(), selection_set :: argo_graphql_selection_set:t()}.
Functions
-spec add_argument(Field, Argument) -> Field when Field :: t(), Argument :: argo_graphql_argument:t().
-spec add_directive(Field, Directive) -> Field when Field :: t(), Directive :: argo_graphql_directive:t().
-spec add_selection(Field, Selection) -> Field when Field :: t(), Selection :: argo_graphql_selection_set:selection().
-spec find_field(Field, FieldAliasOrName, ExecutableDocument) -> {ok, Field} | error when Field :: t(), FieldAliasOrName :: argo_types:name(), ExecutableDocument :: argo_graphql_executable_document:t().
-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().
-spec format(Formatter1, Type :: t()) -> Formatter2 when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
-spec from_language(LanguageField) -> Field when LanguageField :: argo_graphql_language_field:t(), Field :: t().
-spec get_response_key(Field) -> ResponseKey when Field :: t(), ResponseKey :: argo_types:name().
-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().
-spec set_alias(Field, OptionAlias) -> Field when Field :: t(), OptionAlias :: none | {some, unicode:unicode_binary()}.