IntrospectionMapping

grackle.Introspection.IntrospectionMapping

Attributes

Source
introspection.scala
Graph
Supertypes
class ValueMapping[[_] =>> Either[Throwable, _$4]]
trait ValueMappingLike[[_] =>> Either[Throwable, _$4]]
class Mapping[[_] =>> Either[Throwable, _$4]]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

Ambiguous type mappings.

Ambiguous type mappings.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait AnsiColor
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object CursorField

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any
case class Delegate(fieldName: String, mapping: Mapping[F], join: (Query, Cursor) => Result[Query])(implicit pos: SourcePos) extends FieldMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait EffectMapping extends FieldMapping

Abstract type of field mappings with effects.

Abstract type of field mappings with effects.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class EffectField
class RootEffect
class RootStream

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class CirceField
class CursorField[T]
class Delegate
class EffectField
class RootEffect
class RootStream
class SqlField
class SqlJson
class SqlObject
class GenericField[T]
class ValueField[T]
class Wrap[T]
Show all
case class FieldTransformCursor[T](underlying: Cursor, f: T => Result[T])(implicit evidence$1: ClassTag[T], evidence$2: TypeName[T]) extends ProxyCursor

Proxy Cursor which applies a function to the focus of an underlying LeafCursor.

Proxy Cursor which applies a function to the focus of an underlying LeafCursor.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class ProxyCursor
trait Cursor
class Object
trait Matchable
class Any
Show all
case class LeafCursor(context: Context, focus: Any, parent: Option[Cursor], env: Env) extends Cursor

Cursor positioned at a GraphQL result leaf

Cursor positioned at a GraphQL result leaf

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any
Show all
object LeafMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any
trait LeafMapping[T] extends TypeMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait TypeMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes

GraphQL type isn't applicable for mapping type.

GraphQL type isn't applicable for mapping type.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait AnsiColor
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any

A predicate determining the applicability of a TypeMapping in a given context

A predicate determining the applicability of a TypeMapping in a given context

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Object type owner declares field but no such mapping exists.

Object type owner declares field but no such mapping exists.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait AnsiColor
class Object
trait Matchable
class Any
Show all

Missing type mapping.

Missing type mapping.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait AnsiColor
class Object
trait Matchable
class Any
Show all
abstract class ObjectMapping extends TypeMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait TypeMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object ObjectMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any

GraphQL type isn't applicable for mapping type.

GraphQL type isn't applicable for mapping type.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait AnsiColor
class Object
trait Matchable
class Any
Show all

Referenced type does not exist.

Referenced type does not exist.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait AnsiColor
class Object
trait Matchable
class Any
Show all

Root Cursor focussed on the top level operation of a query

Root Cursor focussed on the top level operation of a query

Construction of mapping-specific cursors is handled by delegation to mkCursorForField which is typically overridden in Mapping subtypes.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any
Show all
case class RootEffect extends EffectMapping

Root effects can perform an intial effect prior to computing the resulting Cursor and effective Query.

Root effects can perform an intial effect prior to computing the resulting Cursor and effective Query.

These effects are used to perform initial effectful setup for a query or to perform the effect associated with a GraphQL mutation. Convenience methods are provided to cover the cases where only one of the query or the cursor are computed.

If only the query is computed the default root cursor for the mapping will be used. If only the cursor is computed the client query (after elaboration) is used unmodified ... in this case results of the performed effect can only be passed to the result construction stage via the environment associated with the returned cursor.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object RootEffect

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any
case class RootStream extends EffectMapping

Root streams can perform an intial effect prior to emitting the resulting cursors and effective queries.

Root streams can perform an intial effect prior to emitting the resulting cursors and effective queries.

Stream effects are used for GraphQL subscriptions. Convenience methods are provided to cover the cases where only one of the query or the cursor are computed

If only the query is computed the default root cursor for the mapping will be used. If only the cursor is computed the client query (after elaboration) is used unmodified ... in this case results of the performed effect can only be passed to the result construction stage via the environment associated with the returned cursor.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object RootStream

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any
sealed trait TypeMappingCompat

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class TypeMappings

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TypeMappings

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any

Referenced field does not exist.

Referenced field does not exist.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait AnsiColor
class Object
trait Matchable
class Any
Show all

Type mapping is unused.

Type mapping is unused.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait AnsiColor
class Object
trait Matchable
class Any
Show all
case class ValueCursor(context: Context, focus: Any, parent: Option[Cursor], env: Env) extends Cursor

Attributes

Inherited from:
ValueMappingLike
Source
valuemapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any
Show all
case class ValueField[T](fieldName: String, f: T => Any, hidden: Boolean)(implicit pos: SourcePos) extends ValueFieldMapping[T]

Attributes

Inherited from:
ValueMappingLike
Source
valuemapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ValueField

Attributes

Inherited from:
ValueMappingLike
Source
valuemapping.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ValueMappingLike
Source
valuemapping.scala
Supertypes
class Object
trait Matchable
class Any
sealed trait ValueFieldMapping[T] extends FieldMapping

Attributes

Inherited from:
ValueMappingLike
Source
valuemapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class ValueField[T]
class Wrap[T]

Attributes

Inherited from:
ValueMappingLike
Source
valuemapping.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

Backwards compatible constructor for legacy PrefixedMapping

Backwards compatible constructor for legacy PrefixedMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala

Combine and execute multiple queries.

Combine and execute multiple queries.

Each query is interpreted in the context of the Cursor it is paired with. The result list is aligned with the argument query list. For each query at most one stage will be run and the corresponding result may contain deferred components.

Errors are aggregated across all the argument queries and are accumulated on the Left of the result.

This method is typically called at the end of a stage to evaluate deferred subqueries in the result of that stage. These will be grouped by and passed jointly to the responsible mapping in the next stage using this method. Maappongs which are able to benefit from combining queries may do so by overriding this method to implement their specific combinging logic.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Compile and run a single GraphQL query or mutation.

Compile and run a single GraphQL query or mutation.

Yields a JSON response containing the result of the query or mutation.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Compile and run a GraphQL subscription.

Compile and run a GraphQL subscription.

Yields a stream of JSON responses containing the results of the subscription.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Yields a Cursor focused on the top level operation type of the query

Yields a Cursor focused on the top level operation type of the query

Attributes

Inherited from:
Mapping
Source
mapping.scala

Yields the Encoder associated with the provided leaf context, if any.

Yields the Encoder associated with the provided leaf context, if any.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
ValueMappingLike
Source
valuemapping.scala

Yields a Cursor suitable for traversing the query result corresponding to the fieldName child of parent.

Yields a Cursor suitable for traversing the query result corresponding to the fieldName child of parent.

This method is typically overridden in and delegated to by Mapping subtypes.

Attributes

Definition Classes
Inherited from:
ValueMappingLike
Source
valuemapping.scala
def mkResponse(result: Result[Json]): [_] =>> Either[Throwable, _$4][Json]

Construct a GraphQL response from a Result.

Construct a GraphQL response from a Result.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Construct a GraphQL response from the possibly absent result data and a collection of errors.

Construct a GraphQL response from the possibly absent result data and a collection of errors.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Yields the RootEffect, if any, associated with fieldName.

Yields the RootEffect, if any, associated with fieldName.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Yields the RootStream, if any, associated with fieldName.

Yields the RootStream, if any, associated with fieldName.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Definition Classes
Inherited from:
ValueMappingLike
Source
valuemapping.scala

Run this validator, raising a ValidationException if there are any failures of severity equal to or greater than the specified Severity.

Run this validator, raising a ValidationException if there are any failures of severity equal to or greater than the specified Severity.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Validatate this Mapping, yielding a chain of Failures of severity equal to or greater than the specified Severity.

Validatate this Mapping, yielding a chain of Failures of severity equal to or greater than the specified Severity.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Check Mapping specific FieldMapping validity

Check Mapping specific FieldMapping validity

Attributes

Inherited from:
Mapping
Source
mapping.scala

Run this validator, raising a ValidationException in F if there are any failures of severity equal to or greater than the specified Severity.

Run this validator, raising a ValidationException in F if there are any failures of severity equal to or greater than the specified Severity.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Check Mapping specific TypeMapping validity

Check Mapping specific TypeMapping validity

Attributes

Inherited from:
Mapping
Source
mapping.scala
def valueCursor[T](path: Path, env: Env, t: T): Cursor

Attributes

Inherited from:
ValueMappingLike
Source
valuemapping.scala

Concrete fields

Attributes

Source
introspection.scala
val schema: Schema

Attributes

Source
introspection.scala

Inherited fields

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Implicits

Inherited implicits

implicit val M: MonadThrow[[_] =>> Either[Throwable, _$4]]

Attributes

Inherited from:
ValueMapping
Source
valuemapping.scala