View Source JetExt.Absinthe.OneOf.SchemaProtoType (jet_ext v0.2.0)

The homemade one_of directive.

使用方法

在你的 schema 中添加下面代码:

defmodule MyApp.Schema.Admin do
  use Absinthe.Schema

  # 添加这一行
  @prototype_schema JetExt.Absinthe.OneOf.SchemaProtoType

  # ...
end

Summary

Functions

Add a deprecation (with an optional reason) to a node.

Functions

Link to this function

expand_deprecate(arguments, node)

View Source
@spec expand_deprecate(
  arguments :: %{optional(:reason) => String.t()},
  node :: Absinthe.Blueprint.node_t()
) :: Absinthe.Blueprint.node_t()

Add a deprecation (with an optional reason) to a node.