case class Mapping[Origin, A, B](builder: SelectionBuilder[Origin, A], f: (A) => Either[DecodingError, B]) extends SelectionBuilder[Origin, B] with Product with Serializable
- Alphabetic
- By Inheritance
- Mapping
- Serializable
- Product
- Equals
- SelectionBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Mapping(builder: SelectionBuilder[Origin, A], f: (A) => Either[DecodingError, B])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val builder: SelectionBuilder[Origin, A]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def decode(payload: String): Either[CalibanClientError, (B, List[GraphQLResponseError], Option[__ObjectValue])]
Parse the given response payload into the expected return type, with an potential list of partial errors and an optional extensions object
Parse the given response payload into the expected return type, with an potential list of partial errors and an optional extensions object
- Definition Classes
- SelectionBuilder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val f: (A) => Either[DecodingError, B]
- def fromGraphQL(value: __Value): Either[DecodingError, B]
- Definition Classes
- Mapping → SelectionBuilder
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[B](f: (B) => B): SelectionBuilder[Origin, B]
Maps the result of this selection to a new type
BMaps the result of this selection to a new type
B- Definition Classes
- SelectionBuilder
- def mapEither[B](f: (B) => Either[DecodingError, B]): SelectionBuilder[Origin, B]
Maps the result of this selection to a new type
Bor make the decoding fail with a DecodingErrorMaps the result of this selection to a new type
Bor make the decoding fail with a DecodingError- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 22 parametersMaps a tupled result to a type
Resusing a functionfwith 22 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 21 parametersMaps a tupled result to a type
Resusing a functionfwith 21 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 20 parametersMaps a tupled result to a type
Resusing a functionfwith 20 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 19 parametersMaps a tupled result to a type
Resusing a functionfwith 19 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 18 parametersMaps a tupled result to a type
Resusing a functionfwith 18 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 17 parametersMaps a tupled result to a type
Resusing a functionfwith 17 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 16 parametersMaps a tupled result to a type
Resusing a functionfwith 16 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 15 parametersMaps a tupled result to a type
Resusing a functionfwith 15 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, O, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N, O) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N, O)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 14 parametersMaps a tupled result to a type
Resusing a functionfwith 14 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, N, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M, N) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M, N)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 13 parametersMaps a tupled result to a type
Resusing a functionfwith 13 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, M, Res](f: (B, C, D, E, F, G, H, I, J, K, L, M) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L, M)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 12 parametersMaps a tupled result to a type
Resusing a functionfwith 12 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, L, Res](f: (B, C, D, E, F, G, H, I, J, K, L) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K, L)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 11 parametersMaps a tupled result to a type
Resusing a functionfwith 11 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, K, Res](f: (B, C, D, E, F, G, H, I, J, K) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J, K)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 10 parametersMaps a tupled result to a type
Resusing a functionfwith 10 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, J, Res](f: (B, C, D, E, F, G, H, I, J) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I, J)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 9 parametersMaps a tupled result to a type
Resusing a functionfwith 9 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, I, Res](f: (B, C, D, E, F, G, H, I) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H, I)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 8 parametersMaps a tupled result to a type
Resusing a functionfwith 8 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, H, Res](f: (B, C, D, E, F, G, H) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G, H)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 7 parametersMaps a tupled result to a type
Resusing a functionfwith 7 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, G, Res](f: (B, C, D, E, F, G) => Res)(implicit ev: <:<[B, (B, C, D, E, F, G)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 6 parametersMaps a tupled result to a type
Resusing a functionfwith 6 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, F, Res](f: (B, C, D, E, F) => Res)(implicit ev: <:<[B, (B, C, D, E, F)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 5 parametersMaps a tupled result to a type
Resusing a functionfwith 5 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, E, Res](f: (B, C, D, E) => Res)(implicit ev: <:<[B, (B, C, D, E)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 4 parametersMaps a tupled result to a type
Resusing a functionfwith 4 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, D, Res](f: (B, C, D) => Res)(implicit ev: <:<[B, (B, C, D)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 3 parametersMaps a tupled result to a type
Resusing a functionfwith 3 parameters- Definition Classes
- SelectionBuilder
- def mapN[B, C, Res](f: (B, C) => Res)(implicit ev: <:<[B, (B, C)]): SelectionBuilder[Origin, Res]
Maps a tupled result to a type
Resusing a functionfwith 2 parametersMaps a tupled result to a type
Resusing a functionfwith 2 parameters- Definition Classes
- SelectionBuilder
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toGraphQL[A1 >: B, Origin1 <: Origin](useVariables: Boolean = false, queryName: Option[String] = None, dropNullInputValues: Boolean = false)(implicit ev: IsOperation[Origin1]): GraphQLRequest
Transforms a root selection into a GraphQL request.
Transforms a root selection into a GraphQL request.
- useVariables
if true, all arguments will be passed as variables (default: false)
- queryName
if specified, use the given query name
- dropNullInputValues
if true, drop all null values from input object arguments (default: false)
- Definition Classes
- SelectionBuilder
- def toRequest[A1 >: B, Origin1 <: Origin](uri: Uri, useVariables: Boolean = false, queryName: Option[String] = None, dropNullInputValues: Boolean = false)(implicit ev: IsOperation[Origin1]): Request[Either[CalibanClientError, A1], Any]
Transforms a root selection into an STTP request ready to be run.
Transforms a root selection into an STTP request ready to be run. To access partial errors and extensions, use
toRequestWith.- uri
the URL of the GraphQL server
- useVariables
if true, all arguments will be passed as variables (default: false)
- queryName
if specified, use the given query name
- dropNullInputValues
if true, drop all null values from input object arguments (default: false)
- returns
an STTP request
- Definition Classes
- SelectionBuilder
- def toRequestWith[B, Origin1 <: Origin](uri: Uri, useVariables: Boolean = false, queryName: Option[String] = None, dropNullInputValues: Boolean = false)(mapResponse: (B, List[GraphQLResponseError], Option[__ObjectValue]) => B)(implicit ev: IsOperation[Origin1]): Request[Either[CalibanClientError, B], Any]
Transforms a root selection into an STTP request ready to be run.
Transforms a root selection into an STTP request ready to be run. More powerful than
toRequest, it gives you access to partial errors and extensions.- uri
the URL of the GraphQL server
- useVariables
if true, all arguments will be passed as variables (default: false)
- queryName
if specified, use the given query name
- dropNullInputValues
if true, drop all null values from input object arguments (default: false)
- returns
an STTP request
- Definition Classes
- SelectionBuilder
- def toSelectionSet: List[Selection]
- Definition Classes
- Mapping → SelectionBuilder
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withAlias(alias: String): SelectionBuilder[Origin, B]
Use the given alias for this selection
Use the given alias for this selection
- Definition Classes
- Mapping → SelectionBuilder
- def withDirective(directive: Directive): SelectionBuilder[Origin, B]
Add the given directive to the selection
Add the given directive to the selection
- Definition Classes
- Mapping → SelectionBuilder
- def ~[Origin1 <: Origin, B](that: SelectionBuilder[Origin1, B])(implicit zippable: Zippable[B, B]): SelectionBuilder[Origin1, Out]
Combines this selection with another selection, returning a tuple of both results.
Combines this selection with another selection, returning a tuple of both results. To be combines, selections needs to have the same origin.
- Definition Classes
- SelectionBuilder
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)