View Source argo_graphql_language_value (argo v1.0.4)
Summary
Types
-type inner() :: {variable, argo_graphql_language_variable:t()} | null | {float, float()} | {int, integer()} | {string, argo_graphql_language_string_value:t()} | {boolean, boolean()} | {enum, argo_graphql_language_enum_value:t()} | {list, argo_graphql_language_list_value:t()} | {object, argo_graphql_language_object_value:t()}.
-type t() :: #argo_graphql_language_value{location :: erl_anno:location(), inner :: argo_graphql_language_value:inner()}.
Functions
-spec boolean(Boolean, Location) -> Value when Boolean :: boolean(), Location :: erl_anno:location(), Value :: t().
-spec enum(EnumValue, Location) -> Value when EnumValue :: argo_graphql_language_enum_value:t(), Location :: erl_anno:location(), Value :: t().
-spec float(Float, Location) -> Value when Float :: float(), Location :: erl_anno:location(), Value :: t().
-spec format(Formatter1, Type :: t()) -> Formatter2 when Formatter1 :: argo_graphql_formatter:t(), Formatter2 :: argo_graphql_formatter:t().
-spec int(Int, Location) -> Value when Int :: integer(), Location :: erl_anno:location(), Value :: t().
-spec list(ListValue, Location) -> Value when ListValue :: argo_graphql_language_list_value:t(), Location :: erl_anno:location(), Value :: t().
-spec null(Location) -> Value when Location :: erl_anno:location(), Value :: t().
-spec object(ObjectValue, Location) -> Value when ObjectValue :: argo_graphql_language_object_value:t(), Location :: erl_anno:location(), Value :: t().
-spec string(String, Location) -> Value when String :: unicode:unicode_binary(), Location :: erl_anno:location(), Value :: t().
-spec variable(Variable, Location) -> Value when Variable :: argo_graphql_language_variable:t(), Location :: erl_anno:location(), Value :: t().