ExShopifySchema.Generator.Graphql.Introspection.Definition.NamedType (ExShopifySchema v2024.4.3)

View Source

The fundamental unit of any GraphQL Schema is the type. There are six kinds of named type definitions in GraphQL, and two wrapping types.

https://spec.graphql.org/October2021/#sec-Types

Example introspection payload

{
  "kind": "SCALAR",
  "name": "ARN",
  "description": "An Amazon Web Services Amazon Resource Name (ARN), including the Region and account ID.\nFor more information, refer to [Amazon Resource Names](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).",
  "fields": null,
  "inputFields": null,
  "interfaces": null,
  "enumValues": null,
  "possibleTypes": null
}

Summary

Types

kind()

@type kind() :: :scalar | :object | :interface | :union | :enum | :input_object

t()

@type t() :: %ExShopifySchema.Generator.Graphql.Introspection.Definition.NamedType{
  kind: kind(),
  name: String.t()
}

Functions

load_json(json)

@spec load_json(json :: map()) :: t()