Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

@OlegIlyenko
Last activeOctober 25, 2019 03:59
    • Star(1)You must be signed in to star a gist
    • Fork(2)You must be signed in to fork a gist
    Save OlegIlyenko/4068ad92e008cd4b5def1baa4ec3a67c to your computer and use it in GitHub Desktop.
    An example of minimal self-contained snippet that reproduces specific issue
    // Imports that you are using
    importsangria.schema._
    importsangria.execution._
    importsangria.macros._
    importsangria.marshalling.circe._
    importscala.concurrent.ExecutionContext.Implicits.global
    // The schema definition
    valQueryType=ObjectType("Query", fields[Unit,Unit](
    Field("hello",StringType, resolve= _"Hello world!")
    ))
    valschema=Schema(QueryType)
    // Test query
    valquery=graphql"{ hello }"
    valresult=Executor.execute(schema, query)
    result.foreach(res println(res.spaces2))
    // Expected output:
    //
    // {
    // "hello": "Hello world!"
    // }
    // Actual output:
    //
    // ???
    Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

    [8]ページ先頭

    ©2009-2025 Movatter.jp