View Source argo_graphql_language_value_const (argo v1.0.4)

Summary

Types

-type inner() ::
    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_const:t()} |
    {object, argo_graphql_language_object_value_const:t()}.
-type t() ::
    #argo_graphql_language_value_const{location :: erl_anno:location(),
                                       inner :: argo_graphql_language_value_const:inner()}.

Functions

Link to this function

boolean(Boolean, Location)

View Source
-spec boolean(Boolean, Location) -> ConstValue
           when Boolean :: boolean(), Location :: erl_anno:location(), ConstValue :: t().
Link to this function

enum(EnumValue, Location)

View Source
-spec enum(EnumValue, Location) -> ConstValue
        when
            EnumValue :: argo_graphql_language_enum_value:t(),
            Location :: erl_anno:location(),
            ConstValue :: t().
-spec float(Float, Location) -> ConstValue
         when Float :: float(), Location :: erl_anno:location(), ConstValue :: t().
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().
-spec int(Int, Location) -> ConstValue
       when Int :: integer(), Location :: erl_anno:location(), ConstValue :: t().
Link to this function

list(ListValueConst, Location)

View Source
-spec list(ListValueConst, Location) -> ConstValue
        when
            ListValueConst :: argo_graphql_language_list_value_const:t(),
            Location :: erl_anno:location(),
            ConstValue :: t().
-spec null(Location) -> ConstValue when Location :: erl_anno:location(), ConstValue :: t().
Link to this function

object(ObjectValueConst, Location)

View Source
-spec object(ObjectValueConst, Location) -> ConstValue
          when
              ObjectValueConst :: argo_graphql_language_object_value_const:t(),
              Location :: erl_anno:location(),
              ConstValue :: t().
Link to this function

string(String, Location)

View Source
-spec string(String, Location) -> ConstValue
          when
              String :: unicode:unicode_binary(),
              Location :: erl_anno:location(),
              ConstValue :: t().