Skip to content

Instantly share code, notes, and snippets.

Created August 3, 2017 06:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/b850a6ddddd0eba790ea46db1b2b0101 to your computer and use it in GitHub Desktop.
the description for this gist
private def executeGraphQLQuery(query: Document, op: Option[String], vars: JsObject)(implicit e: ExecutionContext) = {
variables = vars,
operationName = op
).map(OK -> _)
.recover {
case error: QueryAnalysisError => BadRequest -> error.resolveError
case error: ErrorWithResolver => InternalServerError -> error.resolveError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment