ArgDecoder

gql.ArgDecoder
final case class ArgDecoder[A, B](av: ArgValue[A], decode: ArgParam[A] => Either[String, B])

A combination of an argument declaration ArgParam and a decoder function for ArgParam. This structure is more specialized than just decoding with Arg, since you will have access to field specific information such as if the argument was provided explicitly or the default was used.

The trivial implementation of an ArgDecoder given an ArgValue:

val av: ArgValue[A] = ???
ArgDecoder[A, A](av, _.value.asRight)

Attributes

Source
Arg.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product