QueryParser

object QueryParser

GraphQL query parser

class Object
trait Matchable
class Any

Value members

Concrete methods

def parseArg(name: Name, value: Value): Result[Binding]
def parseArgs(args: List[(Name, Value)]): Result[List[Binding]]
def parseDocument(doc: Document, name: Option[String]): Result[UntypedOperation]
def parseSelection(sel: Selection, typeCondition: Option[String], fragments: Map[String, FragmentDefinition]): Result[Query]
def parseSelections(sels: List[Selection], typeCondition: Option[String], fragments: Map[String, FragmentDefinition]): Result[Query]
def parseSkipInclude(directives: List[Directive]): Result[Option[(Boolean, Value)]]
def parseText(text: String, name: Option[String]): Result[UntypedOperation]

Parse a query String to a query algebra term.

Parse a query String to a query algebra term.

Yields a Query value on the right and accumulates errors on the left.

def parseValue(value: Value): Result[Value]