ExShopifySchema.Generator.Graphql.Introspection.Definition.NonNullType (ExShopifySchema v2024.7.3)

View Source

By default, all types in GraphQL are nullable; the null value is a valid response for all of the above types. To declare a type that disallows null, the GraphQL Non-Null type can be used.

https://spec.graphql.org/October2021/#sec-Non-Null

Example introspection payload

{
  "kind": "NON_NULL",
  "name": null,
  "ofType": {
    "kind": "SCALAR",
    "name": "String",
    "ofType": null
  }
}

Summary

Types

t()

@type t() :: %ExShopifySchema.Generator.Graphql.Introspection.Definition.NonNullType{
  type:
    ExShopifySchema.Generator.Graphql.Introspection.Definition.NamedType.t()
    | ExShopifySchema.Generator.Graphql.Introspection.Definition.ListType.t()
}

Functions

load_json(json)

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