graphqexl v0.1.0-alpha-rc.24 Graphqexl.Schema
Structured representation of a GraphQL schema, either built dynamically or parsed from a JSON document or GQL string.
Link to this section Summary
Functions
Builds an executable schema containing the schema definition as well as resolver map and context factory.
Parses a Graphqexl.Schema.gql/0 string into a Graphqexl.Schema.t/0.
Check whether a Graphqexl.Schema.Field.t/0 is defined on the given Graphqexl.Schema.t/0.
Registers the given Graphqexl.Schema.component/0 on the given Graphqexl.Schema.t/0.
Link to this section Types
component()
component() :: Graphqexl.Schema.TEnum.t() | Graphqexl.Schema.Interface.t() | Graphqexl.Schema.Mutation.t() | Graphqexl.Schema.Query.t() | Graphqexl.Schema.Subscription.t() | Graphqexl.Schema.Type.t() | Graphqexl.Schema.Union.t()
t()
t() :: %Graphqexl.Schema{
context: (Graphqexl.Schema.Query.t(), Map.t() -> Map.t()),
enums: %{required(atom()) => Graphqexl.Schema.TEnum.t()},
interfaces: %{required(atom()) => Graphqexl.Schema.Interface.t()},
mutations: %{required(atom()) => Graphqexl.Schema.Mutation.t()},
queries: %{required(atom()) => Graphqexl.Schema.Query.t()},
resolvers: %{required(atom()) => (Map.t(), Map.t(), Map.t() -> Map.t())},
subscriptions: %{required(atom()) => Graphqexl.Schema.Subscription.t()},
types: %{required(atom()) => Graphqexl.Schema.Type.t()},
unions: %{required(atom()) => Graphqexl.Schema.Union.t()}
}
Link to this section Functions
Builds an executable schema containing the schema definition as well as resolver map and context factory.
Returns: Graphqexl.Schema.t/0
Parses a Graphqexl.Schema.gql/0 string into a Graphqexl.Schema.t/0.
Returns: Graphqexl.Schema.t/0
has_field?(schema, field)
(since 0.1.0)has_field?(Graphqexl.Schema.t(), atom()) :: boolean()
Check whether a Graphqexl.Schema.Field.t/0 is defined on the given Graphqexl.Schema.t/0.
Returns: boolean/0
Registers the given Graphqexl.Schema.component/0 on the given Graphqexl.Schema.t/0.
Returns Graphqexl.Schema.t/0