ExShopifySchema.Generator.Graphql.Introspection.Definition.OperationType (ExShopifySchema v2024.10.2)

View Source

There are three types of operations that GraphQL models:

  • query – a read-only fetch.
  • mutation – a write followed by a fetch.
  • subscription – a long-lived request that fetches data in response to source events.

https://spec.graphql.org/October2021/#sec-Language.Operations

Summary

Types

operation_type()

@type operation_type() :: :query | :mutation | :subscription

t()

@type t() ::
  %ExShopifySchema.Generator.Graphql.Introspection.Definition.OperationType{
    operation: operation_type(),
    type:
      ExShopifySchema.Generator.Graphql.Introspection.Definition.NamedType.t()
  }

Functions

load_json(json)

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