File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/graphql-playground-middleware-lambda Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " graphql-playground-middleware-lambda" ,
3- "version" : " 1.3.6 " ,
3+ "version" : " 1.3.7 " ,
44 "homepage" : " https://github.com/graphcool/graphql-playground/tree/master/packages/graphql-playground-middleware-lambada" ,
55 "description" : " GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)." ,
66 "contributors" : [
Original file line number Diff line number Diff line change @@ -9,12 +9,16 @@ import {
99const { version } = require ( '../package.json' )
1010
1111export default function lambdaPlayground ( options : MiddlewareOptions ) {
12- return ( event , lambdaContext : lambda . Context , callback : lambda . Callback ) => {
12+ return async (
13+ event ,
14+ lambdaContext : lambda . Context ,
15+ callback : lambda . Callback ,
16+ ) => {
1317 const middlewareOptions : RenderPageOptions = {
1418 ...options ,
1519 version,
1620 }
17- const body = renderPlaygroundPage ( middlewareOptions )
21+ const body = await renderPlaygroundPage ( middlewareOptions )
1822 callback ( null , {
1923 statusCode : 200 ,
2024 headers : {
You can’t perform that action at this time.
0 commit comments