RootEffect

edu.gemini.grackle.Mapping.RootEffect
See theRootEffect companion object
case class RootEffect extends FieldMapping

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

Companion:
object
Source:
mapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Attributes

Source:
mapping.scala

Attributes

Source:
mapping.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Implicits

Implicits

implicit val pos: SourcePos

Attributes

Source:
mapping.scala