GraphqlMarkdown.Schema (Graphql Markdown v1.1.0)

Copy Markdown View Source

Internal Schema representation of Graphql section we care about

Summary

Types

t()

The parts of an introspection result the renderers work from.

Types

t()

@type t() :: %GraphqlMarkdown.Schema{
  enums: [map()],
  inputs: [map()],
  interfaces: [map()],
  mutations: map() | nil,
  objects: [map()],
  queries: map() | nil,
  scalars: [map()],
  subscriptions: map() | nil,
  unions: [map()]
}

The parts of an introspection result the renderers work from.

queries, mutations and subscriptions hold the root operation type (an introspection type map with its "fields"), or nil when the schema has no such root. The other keys hold the user-defined types of that kind, sorted by name, with the root operation types left out.

Functions

enum_kind()

field_kind(type)

field_type(type)

find_and_sort_type(types, field, value, sort_by \\ "name")

full_field_type(type)

input_kind()

interface_kind()

mutation_type(schema)

object_kind()

query_type(schema)

scalar_kind()

schema_from_json(arg1)

subscription_type(schema)

types(schema)

union_kind()