View Source argo_graphql_field_definition (argo v1.0.0)
Summary
Types
-type t() :: #argo_graphql_field_definition{}.
Functions
-spec add_argument_definition(FieldDefinition, InputValueDefinition) -> FieldDefinition when FieldDefinition :: t(), InputValueDefinition :: argo_graphql_input_value_definition:t().
-spec add_directive_const(FieldDefinition, DirectiveConst) -> FieldDefinition when FieldDefinition :: t(), DirectiveConst :: argo_graphql_directive_const:t().
-spec builtin(FieldName) -> {ok, FieldDefinition} | error when FieldName :: argo_types:name(), FieldDefinition :: t().
-spec format(Formatter1, Type :: t()) -> Formatter2 when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
-spec from_language(LanguageFieldDefinition) -> FieldDefinition when LanguageFieldDefinition :: argo_graphql_language_field_definition:t(), FieldDefinition :: t().
-spec new(Name, Type) -> FieldDefinition when Name :: argo_types:name(), Type :: argo_graphql_type:t(), FieldDefinition :: t().
-spec set_description(FieldDefinition, OptionDescription) -> FieldDefinition when FieldDefinition :: t(), OptionDescription :: none | {some, unicode:unicode_binary()}.