Yson.GraphQL.Schema.arg

You're seeing just the macro arg, go back to Yson.GraphQL.Schema module for more information.
Link to this macro

arg(name, type)

View Source (macro)

Defines a basic GraphQL argument.

It can be used inside mutation/3, query/3 or arg/3 macros.

Examples

arg(:name, :string)
Link to this macro

arg(name, opts \\ [], list)

View Source (macro)

Defines a complex GraphQL argument.

It contains args and can be used inside mutation/3, query/3 or arg/3 macros.

Examples

arg :address do
  arg(:street, :string)
  arg(:city, :string)
end