Class

sangria.validation.rules

OverlappingFieldsCanBeMerged

Related Doc: package rules

Permalink

class OverlappingFieldsCanBeMerged extends ValidationRule

Overlapping fields can be merged

A selection set is only valid if all fields (including spreading any fragments) either correspond to distinct response names or can be merged without ambiguity.

Linear Supertypes
ValidationRule, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. OverlappingFieldsCanBeMerged
  2. ValidationRule
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OverlappingFieldsCanBeMerged()

    Permalink

Type Members

  1. trait AstValidatingVisitor extends AnyRef

    Permalink
    Definition Classes
    ValidationRule
  2. type CollectedFields = ListMap[String, ListBuffer[(Field, Option[Field[_, _]])]]

    Permalink
  3. type ValidationVisit = PartialFunction[AstNode, Either[Vector[Violation], ast.AstVisitorCommand.Value]]

    Permalink
    Definition Classes
    ValidationRule

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(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def collectFieldASTsAndDefs(ctx: ValidationContext, parentType: Option[Type], selCont: SelectionContainer, visitedFragmentNames: Set[String] = MutableSet(), astAndDefs: CollectedFields = MutableMap()): CollectedFields

    Permalink

    Given a selectionSet, adds all of the fields in that selection to the passed in map of fields, and returns it at the end.

    Given a selectionSet, adds all of the fields in that selection to the passed in map of fields, and returns it at the end.

    Note: This is not the same as execution's collectFields because at static time we do not know what object type will be used, so we unconditionally spread in all fragments.

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def sameArguments(args1: List[Argument], args2: List[Argument]): Boolean

    Permalink
  17. def sameDirectives(directives1: List[Directive], directives2: List[Directive]): Boolean

    Permalink
  18. def sameType(type1: String, type2: String): Boolean

    Permalink
  19. def sameValue(v1: Value, v2: Value): Boolean

    Permalink
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def visitor(ctx: ValidationContext): AstValidatingVisitor { val onLeave: OverlappingFieldsCanBeMerged.this.ValidationVisit }

    Permalink
  23. final def wait(): Unit

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

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

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

Inherited from ValidationRule

Inherited from AnyRef

Inherited from Any

Ungrouped