graphqexl v0.1.0-alpha-rc.25 Graphqexl.Schema.Type

GraphQL custom type

Example: type User {

id: Id!
firstName: String
lastName: String
email: Email!

}

Link to this section Summary

Functions

Checks whether the given t:Graphqexl.Schema.Field is a custom scalar type.

Link to this section Types

Link to this type

t()

t() :: %Graphqexl.Schema.Type{
  deprecated: boolean(),
  deprecation_reason: String.t(),
  description: String.t(),
  fields: Treex.Tree.t(),
  implements: Graphqexl.Schema.Ref.t() | nil,
  name: String.t()
}

Link to this section Functions

Link to this function

fields(type)

(since 0.1.0)
fields(t()) :: [Graphqexl.Schema.Field.t()]

Lists the Graphqexl.Schema.Field.t/0s available on the given Graphqexl.Schema.Type.t/0.

Returns: [t:Graphqexl.Schema.Field.t/0]

Link to this function

is_custom_scalar?(type, field)

(since 0.1.0)
is_custom_scalar?(t(), atom()) :: boolean()

Checks whether the given t:Graphqexl.Schema.Field is a custom scalar type.

Returns: boolean/0