trait Cursor extends AnyRef

Indicates a position within an abstract data model during the interpretation of a GraphQL query.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cursor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def asLeaf: Result[Json]

    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.

  2. abstract 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.

  3. abstract def asNullable: Result[Option[Cursor]]

    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.

  4. abstract def attribute(attributeName: String): Result[Any]

    Yield the value of the attribute named attributeName of the value at this Cursor, or an error on the left hand side if there is no such attribute.

  5. abstract def field(fieldName: 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.

  6. abstract def focus: Any

    The value at the position represented by this Cursor.

  7. abstract def hasAttribute(attributeName: String): Boolean

    Does the value at this Cursor have an attribute named attributeName?

  8. abstract def hasField(fieldName: String): Boolean

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

  9. abstract def isLeaf: Boolean

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

  10. abstract def isList: Boolean

    Is the value at this Cursor of a list type?

  11. abstract def isNullable: Boolean

    Is the value at this Cursor of a nullable type?

  12. abstract 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.

  13. abstract def narrowsTo(subtpe: TypeRef): Boolean

    Is the value at this Cursor narrowable to subtpe?

  14. abstract def tpe: Type

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

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def attrListPath(fns: List[String]): Result[List[Any]]

    Yield the list of values of the attribute 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.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. def flatListPath(fns: List[String]): Result[List[Cursor]]

    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.

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hasListPath(fns: List[String]): Boolean

    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.

  13. def hasPath(fns: List[String]): Boolean

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

  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def listPath(fns: List[String]): Result[List[Cursor]]

    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.

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. 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.

  21. def nullableHasField(fieldName: String): Boolean

    Does the possibly nullable value at this Cursor have an attributed named attributeName?

  22. 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.

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped