grackle.Mapping.RootEffect
See theRootEffect companion object
case class RootEffect extends EffectMapping
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
- Companion
- object
- Source
- mapping.scala
- Graph
-
- Supertypes
-
trait EffectMappingtrait FieldMappingtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article