GenericMapping

abstract class GenericMapping[F[_]] extends Mapping[F]
class Mapping[F]
trait QueryExecutor[F, Json]
class Object
trait Matchable
class Any

Type members

Classlikes

case class GenericRoot[T](tpe: Option[Type], fieldName: String, t: T, cb: () => CursorBuilder[T], mutation: Mutation)(implicit pos: SourcePos) extends RootMapping

Inherited classlikes

case class CursorField[T](fieldName: String, f: Cursor => Result[T], encoder: Encoder[T], required: List[String], hidden: Boolean)(implicit pos: SourcePos)
Inherited from
Mapping
object CursorField
Inherited from
Mapping
case class Delegate(fieldName: String, interpreter: Mapping[F], join: (Cursor, Query) => Result[Query])(implicit pos: SourcePos)
Inherited from
Mapping
Inherited from
Mapping
object LeafMapping
Inherited from
Mapping
trait LeafMapping[T]
Inherited from
Mapping
case class Mutation(run: (Query, Env) => Stream[F, Result[(Query, Env)]])

Root mappings can perform a mutation prior to constructing the result Cursor. A Mutation may perform a Unit effect and simply return the passed arguments; or it may refine the passed Query and/or Env that will be used to interpret the resulting Cursor.

Root mappings can perform a mutation prior to constructing the result Cursor. A Mutation may perform a Unit effect and simply return the passed arguments; or it may refine the passed Query and/or Env that will be used to interpret the resulting Cursor.

Inherited from
Mapping
object Mutation
Inherited from
Mapping
Inherited from
Mapping
Inherited from
Mapping
case class PrefixedMapping(tpe: Type, mappings: List[(List[String], ObjectMapping)])(implicit pos: SourcePos)
Inherited from
Mapping
case class PrimitiveField(fieldName: String, hidden: Boolean)(implicit pos: SourcePos)
Inherited from
Mapping
case class PrimitiveMapping(tpe: Type)(implicit pos: SourcePos)
Inherited from
Mapping
Inherited from
Mapping
Inherited from
Mapping

Value members

Concrete methods

def GenericRoot[T](fieldName: String, t: T, mutation: Mutation)(implicit cb: => CursorBuilder[T]): GenericRoot[T]

Inherited methods

def compileAndRun(text: String, name: Option[String], untypedVars: Option[Json], introspectionLevel: IntrospectionLevel, env: Env)(implicit sc: Compiler[F, F]): F[Json]
Inherited from
QueryExecutor
def compileAndRunAll(text: String, name: Option[String], untypedVars: Option[Json], introspectionLevel: IntrospectionLevel, env: Env): Stream[F, Json]
Inherited from
Mapping
def compileAndRunOne(text: String, name: Option[String], untypedVars: Option[Json], introspectionLevel: IntrospectionLevel, env: Env)(implicit sc: Compiler[F, F]): F[Json]
Inherited from
Mapping
def compilerPhases: List[Phase]
Inherited from
Mapping
def fieldMapping(context: Context, fieldName: String): Option[FieldMapping]
Inherited from
Mapping
def leafMapping[T](tpe: Type): Option[LeafMapping[T]]
Inherited from
Mapping
def objectMapping(context: Context): Option[ObjectMapping]
Inherited from
Mapping
def rootCursor(context: Context, fieldName: String, resultName: Option[String], child: Query, env: Env): Stream[F, Result[(Query, Cursor)]]
Inherited from
Mapping
def rootMapping(context: Context, fieldName: String): Option[RootMapping]
Inherited from
Mapping
def run(op: Operation, env: Env): Stream[F, Json]
Inherited from
Mapping
def run(query: Query, rootTpe: Type, env: Env): Stream[F, Json]
Inherited from
Mapping
def typeMapping(tpe: Type): Option[TypeMapping]
Inherited from
Mapping

Inherited fields

lazy val compiler: QueryCompiler
Inherited from
Mapping
lazy val componentElaborator: ComponentElaborator[F]
Inherited from
Mapping
val interpreter: QueryInterpreter[F]
Inherited from
Mapping
val schema: Schema
Inherited from
Mapping
val selectElaborator: SelectElaborator
Inherited from
Mapping
Inherited from
Mapping
val validator: MappingValidator
Inherited from
Mapping

Implicits

Inherited implicits

implicit val M: Monad[F]
Inherited from
Mapping