sangria-graphql / sangria-graphql.github.io

Project website
https://sangria-graphql.github.io
6 stars 37 forks source link

Fix snippet #71

Closed kubukoz closed 5 years ago

kubukoz commented 5 years ago

To be honest, it looks like the snippet doesn't really match what should be there at all:

The Future of marshaled result is not the only possible result of a query execution. By importing different implementation of ExecutionScheme you can change the result type of an execution. Here is an example:

import sangria.execution.ExecutionScheme.Extended

val result: Future[ExecutionResult[Ctx, JsValue]] = 
  val Executor.execute(schema, query)

(ExecutionScheme isn't used anywhere here)

kubukoz commented 5 years ago

I'm closing this now due to inactivity, feel free to reopen and let me know what to do about it.