zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

field_definition.ex (1219B)


      1 defmodule Absinthe.Blueprint.Schema.FieldDefinition do
      2   @moduledoc false
      3 
      4   alias Absinthe.Blueprint
      5 
      6   @enforce_keys [:name]
      7   defstruct [
      8     :name,
      9     :identifier,
     10     :type,
     11     :module,
     12     description: nil,
     13     deprecation: nil,
     14     config: nil,
     15     triggers: [],
     16     default_value: nil,
     17     arguments: [],
     18     directives: [],
     19     complexity: nil,
     20     source_location: nil,
     21     middleware: [],
     22     function_ref: nil,
     23     flags: %{},
     24     errors: [],
     25     __reference__: nil,
     26     __private__: []
     27   ]
     28 
     29   @type t :: %__MODULE__{
     30           name: String.t(),
     31           identifier: atom,
     32           description: nil | String.t(),
     33           deprecation: nil | Blueprint.Schema.Deprecation.t(),
     34           arguments: [Blueprint.Schema.InputValueDefinition.t()],
     35           type: Blueprint.TypeReference.t(),
     36           directives: [Blueprint.Directive.t()],
     37           source_location: nil | Blueprint.SourceLocation.t(),
     38           # Added by DSL
     39           description: nil | String.t(),
     40           middleware: [any],
     41           # Added by phases
     42           flags: Blueprint.flags_t(),
     43           errors: [Absinthe.Phase.Error.t()]
     44         }
     45 
     46   @doc false
     47   def functions(), do: [:config, :complexity, :middleware, :triggers]
     48 end