CirceMapping

edu.gemini.grackle.circe.CirceMapping
abstract class CirceMapping[F[_]](implicit val M: Monad[F]) extends Mapping[F] with CirceMappingLike[F]

Attributes

Source:
circemapping.scala
Graph
Supertypes
class Mapping[F]
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Inherited classlikes

case class CirceCursor(context: Context, focus: Json, parent: Option[Cursor], env: Env) extends Cursor

Attributes

Inherited from:
CirceMappingLike
Source:
circemapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any
case class CirceField(fieldName: String, value: Json, hidden: Boolean)(implicit pos: SourcePos) extends CirceFieldMapping

Attributes

Inherited from:
CirceMappingLike
Source:
circemapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed trait CirceFieldMapping extends FieldMapping

Attributes

Inherited from:
CirceMappingLike
Source:
circemapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
implicit class CirceMappingRootEffectSyntax(self: RootEffect.type)

Attributes

Inherited from:
CirceMappingLike
Source:
circemapping.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

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

Attributes

Inherited from:
Mapping
Source:
mapping.scala
Graph
Supertypes
class Object
trait Matchable
class Any
case class CursorFieldJson(fieldName: String, f: Cursor => Result[Json], required: List[String], hidden: Boolean)(implicit pos: SourcePos) extends CirceFieldMapping

Attributes

Inherited from:
CirceMappingLike
Source:
circemapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Inherited from:
Mapping
Source:
mapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
trait FieldMapping extends Product with Serializable

Attributes

Inherited from:
Mapping
Source:
mapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Known subtypes
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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Inherited from:
Mapping
Source:
mapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class PrimitiveMapping(tpe: Type)(implicit pos: SourcePos) extends TypeMapping

Attributes

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

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 inMapping` subtypes.

Attributes

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

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.

Convenience methods are provided to cover the cases where only one of the query or the cursor are computed, and for where the computation is one-shot or a Stream. One-shot effects are used to perform initial effectful setup for a query or to perform the effect associated with a GraphQL mutation. Stream effects are used for GraphQL subscriptions.

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object RootEffect

Attributes

Inherited from:
Mapping
Source:
mapping.scala
Graph
Supertypes
class Object
trait Matchable
class Any
trait TypeMapping extends Product with Serializable

Attributes

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

Value members

Inherited methods

def circeCursor(path: Path, env: Env, value: Json): Cursor

Attributes

Inherited from:
CirceMappingLike
Source:
circemapping.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

Attributes

Inherited from:
Mapping
Source:
mapping.scala

True if the supplied type is a leaf with respect to the GraphQL schema or mapping, false otherwise.

True if the supplied type is a leaf with respect to the GraphQL schema or mapping, false otherwise.

Attributes

Inherited from:
Mapping
Source:
mapping.scala

Attributes

Inherited from:
Mapping
Source:
mapping.scala
override def mkCursorForField(parent: Cursor, fieldName: String, resultName: Option[String]): Result[Cursor]

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:
CirceMappingLike
Source:
circemapping.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

Attributes

Inherited from:
Mapping
Source:
mapping.scala

Attributes

Inherited from:
Mapping
Source:
mapping.scala

Attributes

Inherited from:
Mapping
Source:
mapping.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

Implicits

implicit val M: Monad[F]

Attributes

Source:
circemapping.scala

Inherited implicits