field.ex (1044B)
1 defmodule Absinthe.Blueprint.Document.Field do 2 @moduledoc false 3 4 alias Absinthe.{Blueprint, Phase, Type} 5 6 @enforce_keys [:name] 7 defstruct [ 8 :name, 9 alias: nil, 10 selections: [], 11 arguments: [], 12 argument_data: %{}, 13 directives: [], 14 # Added by phases 15 flags: %{}, 16 errors: [], 17 source_location: nil, 18 type_conditions: [], 19 schema_node: nil, 20 complexity: nil, 21 # Set during resolution, this holds the concrete parent type 22 # as determined by the resolution phase. 23 parent_type: nil 24 ] 25 26 @type t :: %__MODULE__{ 27 name: String.t(), 28 selections: [Blueprint.Document.selection_t()], 29 arguments: [Blueprint.Input.Argument.t()], 30 directives: [Blueprint.Directive.t()], 31 flags: Blueprint.flags_t(), 32 errors: [Phase.Error.t()], 33 source_location: nil | Blueprint.SourceLocation.t(), 34 type_conditions: [Blueprint.TypeReference.Name], 35 schema_node: Type.t(), 36 complexity: nil | non_neg_integer 37 } 38 end