zf

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

argument.ex (1147B)


      1 defmodule Absinthe.Type.Argument do
      2   @moduledoc """
      3   Used to define an argument.
      4 
      5   Usually these are defined using `Absinthe.Schema.Notation.arg/2`
      6   """
      7 
      8   alias Absinthe.Type
      9 
     10   use Type.Fetch
     11 
     12   @typedoc """
     13   Argument configuration
     14 
     15   * `:name` - The name of the argument, usually assigned automatically using `Absinthe.Schema.Notation.arg/2`.
     16   * `:type` - The type values the argument accepts/will coerce to.
     17   * `:deprecation` - Deprecation information for an argument, usually
     18     set-up using `Absinthe.Schema.Notation.deprecate/1`.
     19   * `:description` - Description of an argument, useful for introspection.
     20   """
     21   @type t :: %__MODULE__{
     22           name: binary,
     23           type: Type.identifier_t(),
     24           default_value: any,
     25           deprecation: Type.Deprecation.t() | nil,
     26           description: binary | nil,
     27           definition: module,
     28           __reference__: Type.Reference.t()
     29         }
     30 
     31   defstruct identifier: nil,
     32             name: nil,
     33             description: nil,
     34             type: nil,
     35             deprecation: nil,
     36             default_value: nil,
     37             definition: nil,
     38             __reference__: nil
     39 end