ListTransformCursor

grackle.Cursor.ListTransformCursor
case class ListTransformCursor(underlying: Cursor, newSize: Int, newElems: Seq[Cursor]) extends ProxyCursor

Proxy list cursor which substitutes an alternative set of elements.

Typically used as the result of a TransformCursor operation

Attributes

Source
cursor.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class ProxyCursor
trait Cursor
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def asList[C](factory: Factory[Cursor, C]): Result[C]

Yield a collection of Cursors corresponding to the elements of the value at this Cursor if it is of a list type, or an error or the left hand side otherwise.

Yield a collection of Cursors corresponding to the elements of the value at this Cursor if it is of a list type, or an error or the left hand side otherwise.

Attributes

Definition Classes
Source
cursor.scala
override def withEnv(env: Env): Cursor

Yields a copy of this Cursor with the supplied additional environment values.

Yields a copy of this Cursor with the supplied additional environment values.

Attributes

Definition Classes
Source
cursor.scala

Inherited methods

def as[T : TypeName]: Result[T]

Yield the value at this Cursor as a value of type T if possible, an error or the left hand side otherwise.

Yield the value at this Cursor as a value of type T if possible, an error or the left hand side otherwise.

Attributes

Inherited from:
Cursor
Source
cursor.scala

Yield the value at this Cursor rendered as Json if it is of a scalar or enum type, an error or the left hand side otherwise.

Yield the value at this Cursor rendered as Json if it is of a scalar or enum type, an error or the left hand side otherwise.

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala
final def asList: Result[List[Cursor]]

Yield a list of Cursors corresponding to the elements of the value at this Cursor if it is of a list type, or an error or the left hand side otherwise.

Yield a list of Cursors corresponding to the elements of the value at this Cursor if it is of a list type, or an error or the left hand side otherwise.

Attributes

Inherited from:
Cursor
Source
cursor.scala

Yield an optional Cursors corresponding to the value at this Cursor if it is of a nullable type, or an error on the left hand side otherwise.

Yield an optional Cursors corresponding to the value at this Cursor if it is of a nullable type, or an error on the left hand side otherwise. The resulting Cursor will be present iff the current value is present in the model.

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala

The Context associated with this Cursor.

The Context associated with this Cursor.

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala
def env: Env

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala
def env[T : ClassTag](nme: String): Option[T]

Yields the value of the supplied environment key, if any.

Yields the value of the supplied environment key, if any.

Attributes

Inherited from:
Cursor
Source
cursor.scala

Does the environment at this Cursor contain a value for the supplied key?

Does the environment at this Cursor contain a value for the supplied key?

Attributes

Inherited from:
Cursor
Source
cursor.scala
def envR[T : TypeName](nme: String): Result[T]

Yields the value of the supplied environment key, if any, or an error if none.

Yields the value of the supplied environment key, if any, or an error if none.

Attributes

Inherited from:
Cursor
Source
cursor.scala
def field(fieldName: String, resultName: Option[String]): Result[Cursor]

Yield a Cursor corresponding to the value of the field fieldName of the value at this Cursor, or an error on the left hand side if there is no such field.

Yield a Cursor corresponding to the value of the field fieldName of the value at this Cursor, or an error on the left hand side if there is no such field.

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala
def fieldAs[T : TypeName](fieldName: String): Result[T]

Yield the value of the field fieldName of this Cursor as a value of type T if possible, an error or the left hand side otherwise.

Yield the value of the field fieldName of this Cursor as a value of type T if possible, an error or the left hand side otherwise.

Attributes

Inherited from:
Cursor
Source
cursor.scala

Yield a list of Cursors corresponding to the values generated by following the path fns from the value at this Cursor, or an error on the left hand side if there is no such path.

Yield a list of Cursors corresponding to the values generated by following the path fns from the value at this Cursor, or an error on the left hand side if there is no such path. If the field at the end of the path is a list then yield the concatenation of the lists of cursors corresponding to the field elements.

Attributes

Inherited from:
Cursor
Source
cursor.scala
def focus: Any

The value at the position represented by this Cursor.

The value at the position represented by this Cursor.

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala
def fullEnv: Env

Yields the cumulative environment defined at this Cursor.

Yields the cumulative environment defined at this Cursor.

Attributes

Inherited from:
Cursor
Source
cursor.scala
def hasField(fieldName: String): Boolean

Does the value at this Cursor have a field named fieldName?

Does the value at this Cursor have a field named fieldName?

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala

Does the value at this Cursor generate a list along the path fns?

Does the value at this Cursor generate a list along the path fns?

true if fns is a valid path from the value at this Cursor and passes through at least one field with a list type.

Attributes

Inherited from:
Cursor
Source
cursor.scala
def hasPath(fns: List[String]): Boolean

Does the value at this Cursor have a field identified by the path fns?

Does the value at this Cursor have a field identified by the path fns?

Attributes

Inherited from:
Cursor
Source
cursor.scala

Yields whether or not this Cursor is defined if it is of a nullable type, or an error otherwise.

Yields whether or not this Cursor is defined if it is of a nullable type, or an error otherwise.

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala

Is the value at this Cursor of a scalar or enum type?

Is the value at this Cursor of a scalar or enum type?

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala

Is the value at this Cursor of a list type?

Is the value at this Cursor of a list type?

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala

True if this cursor is nullable and null, false otherwise.

True if this cursor is nullable and null, false otherwise.

Attributes

Inherited from:
Cursor
Source
cursor.scala

Is the value at this Cursor of a nullable type?

Is the value at this Cursor of a nullable type?

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala

Yield a list of Cursors corresponding to the values generated by following the path fns from the value at this Cursor, or an error on the left hand side if there is no such path.

Yield a list of Cursors corresponding to the values generated by following the path fns from the value at this Cursor, or an error on the left hand side if there is no such path.

Attributes

Inherited from:
Cursor
Source
cursor.scala
def narrow(subtpe: TypeRef): Result[Cursor]

Yield a Cursor corresponding to the value at this Cursor narrowed to type subtpe, or an error on the left hand side if such a narrowing is not possible.

Yield a Cursor corresponding to the value at this Cursor narrowed to type subtpe, or an error on the left hand side if such a narrowing is not possible.

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala
def narrowsTo(subtpe: TypeRef): Boolean

Is the value at this Cursor narrowable to subtpe?

Is the value at this Cursor narrowable to subtpe?

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala
def nullableField(fieldName: String): Result[Cursor]

Yield a Cursor corresponding to the value of the possibly nullable field fieldName of the value at this Cursor, or an error on the left hand side if there is no such field.

Yield a Cursor corresponding to the value of the possibly nullable field fieldName of the value at this Cursor, or an error on the left hand side if there is no such field.

Attributes

Inherited from:
Cursor
Source
cursor.scala
def nullableHasField(fieldName: String): Boolean

Does the possibly nullable value at this Cursor have a field named fieldName?

Does the possibly nullable value at this Cursor have a field named fieldName?

Attributes

Inherited from:
Cursor
Source
cursor.scala

The parent of this Cursor

The parent of this Cursor

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala
def path(fns: List[String]): Result[Cursor]

Yield a Cursor corresponding to the value of the field identified by path fns starting from the value at this Cursor, or an error on the left hand side if there is no such field.

Yield a Cursor corresponding to the value of the field identified by path fns starting from the value at this Cursor, or an error on the left hand side if there is no such field.

Attributes

Inherited from:
Cursor
Source
cursor.scala
def path: List[String]

The selection path from the root

The selection path from the root

Attributes

Inherited from:
Cursor
Source
cursor.scala

Yield a Cursor which can be used to evaluate the antecedant of a Unique operation.

Yield a Cursor which can be used to evaluate the antecedant of a Unique operation.

Attributes

Inherited from:
ProxyCursor
Source
cursor.scala

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

The selection path from the root modified by query aliases.

The selection path from the root modified by query aliases.

Attributes

Inherited from:
Cursor
Source
cursor.scala
def tpe: Type

The GraphQL type of the value at the position represented by this Cursor.

The GraphQL type of the value at the position represented by this Cursor.

Attributes

Inherited from:
Cursor
Source
cursor.scala

Concrete fields

lazy override val listSize: Result[Int]

Yields the number of elements of this Cursor if it is of a list type, or an error otherwise.

Yields the number of elements of this Cursor if it is of a list type, or an error otherwise.

Attributes

Source
cursor.scala