Current section

Files

Jump to
graphqexl lib graphqexl schema field.ex
Raw

lib/graphqexl/schema/field.ex

alias Graphqexl.Schema.Ref
defmodule Graphqexl.Schema.Field do
@moduledoc """
GraphQL field, belonging to e.g. a Type or Interface
"""
defstruct(
deprecated: false,
deprecation_reason: "",
description: "",
name: "",
value: %Ref{}
)
@type t ::
%Graphqexl.Schema.Field{
deprecated: boolean(),
deprecation_reason: String.t(),
description: String.t(),
name: String.t(),
value: Ref.t()
}
end