graphqexl v0.1.0-alpha-rc.24 Graphqexl.Schema.Interface

GraphQL Interface, encapsulating a group of Graphqexl.Schema.Field.t/0 to be shared between Graphqexl.Schema.Type.t/0

Example: interface Timestamped {

createdAt: Datetime
updatedAt: Datetime

}

Link to this section Summary

Link to this section Types

Link to this type

t()

t() :: %Graphqexl.Schema.Interface{
  deprecated: boolean(),
  deprecation_reason: String.t(),
  description: String.t(),
  extend: Graphqexl.Schema.Ref.t() | nil,
  fields: Treex.Tree.t(),
  name: String.t(),
  on: [Graphqexl.Schema.Ref.t()]
}

Link to this section Functions

Link to this function

fields(interface)

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

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

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