Trait

sri.relay.query

RelayQueryNode

Related Doc: package query

Permalink

trait RelayQueryNode extends Object

internal

Queries in Relay are represented as trees. Possible nodes include the root, fields, and fragments. Fields can have children, or they can be leaf nodes. Root and fragment nodes must always have children.

RelayQueryNode provides access to information such as the field name, generated alias, sub-fields, and call values.

Nodes are immutable; query modification is supported via clone:

var next = prev.clone(prev.getChildren().filter(f => ...));

Note: Mediating access to actual query nodes is necessary so that we can replace the current mutable GraphQL nodes with an immutable query representation. This class *must not* mutate the underlying concreteNode. Instead, use an instance variable (see clone()).

TODO (#6937314): RelayQueryNode support for toJSON/fromJSON

Annotations
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RelayQueryNode
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(children: NextChildren): UndefOr[RelayQueryNode]

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def createNode(concreteNode: ConcreteQueryObject): RelayQueryNode

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(that: RelayQueryNode): Boolean

    Permalink

    Determine if this and that are deeply equal.

  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def getChildren: Seq[RelayQueryNode]

    Permalink
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getConcreteQueryNode(onCacheMiss: () ⇒ ConcreteQueryObject): ConcreteQueryObject

    Permalink
  15. def getField(field: RelayQueryField): UndefOr[RelayQueryField]

    Permalink
  16. def getFieldByStorageKey(storageKey: String): UndefOr[RelayQueryField]

    Permalink
  17. def getRoute: RelayMetaRoute

    Permalink
  18. def getVariables: Variables

    Permalink
  19. def hasDeferredDescendant: Boolean

    Permalink
  20. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. def isEquivalent(that: RelayQueryNode): Boolean

    Permalink

    Performs a fast comparison of whether this and that represent identical query nodes.

    Performs a fast comparison of whether this and that represent identical query nodes. Returns true only if the concrete nodes, routes, and variables are all the same.

    Note that it is possible that this method can return false in cases where equals would return true. This can happen when the concrete nodes are different but structurally identical, or when the route/variables are different but do not have an effect on the structure of the query.

  23. def isGenerated: Boolean

    Permalink
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  26. def isRefQueryDependency: Boolean

    Permalink
  27. def isRequisite: Boolean

    Permalink
  28. def isScalar: Boolean

    Permalink
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  37. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped