An example of minimal self-contained snippet that reproduces specific issue

July 24, 2018 · View on GitHub

// Imports that you are using

import sangria.schema._ import sangria.execution._ import sangria.macros._ import sangria.marshalling.circe._ import scala.concurrent.ExecutionContext.Implicits.global

// The schema definition

val QueryType = ObjectType("Query", fields[Unit, Unit]( Field("hello", StringType, resolve = _ ⇒ "Hello world!") ))

val schema = Schema(QueryType)

// Test query

val query = graphql"{ hello }"

val result = Executor.execute(schema, query)

result.foreach(res ⇒ println(res.spaces2))

// Expected output: // // { // "hello": "Hello world!" // }

// Actual output: // // ???