AggregateSourceMapper

sangria.ast.AggregateSourceMapper
See theAggregateSourceMapper companion object
class AggregateSourceMapper(val id: String, val delegates: Vector[SourceMapper]) extends SourceMapper

SourceMapper for potentially multiple GraphQL documents.

Sometimes it's necessary to compose a GraphQL document from multiple component documents; this class provides the corresponding SourceMapper to support that.

Value parameters

delegates

The component documents.

id

Identifier for the combined document.

Attributes

Companion
object
Graph
Supertypes
trait SourceMapper
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def renderLinePosition(location: AstLocation, prefix: String): String

Return an indication of the line position of the given location.

Return an indication of the line position of the given location.

Useful for pointing to the location of a parsing error.

Value parameters

prefix

prefix to attach to the returned string

Attributes

Definition Classes
override def renderLocation(location: AstLocation): String

Return a description of the given location.

Return a description of the given location.

Attributes

Definition Classes

Concrete fields

val id: String

Identifier for the GraphQL document being parsed. Should be unique.

Identifier for the GraphQL document being parsed. Should be unique.

Attributes

lazy override val source: String

The GraphQL source code mapped by this object.

The GraphQL source code mapped by this object.

Attributes