graphql-yoga
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -64,2 +64,11 @@ "use strict"; | ||
} | ||
if (typeof this.context === 'function') { | ||
app.post(endpoint, bodyParser.json(), apollo_server_express_1.graphqlExpress(function (request) { return ({ | ||
schema: _this.schema, | ||
context: _this.context({ request: request }), | ||
}); })); | ||
} | ||
else { | ||
app.post(endpoint, bodyParser.json(), apollo_server_express_1.graphqlExpress({ schema: this.schema, context: this.context })); | ||
} | ||
app.post(endpoint, bodyParser.json(), apollo_upload_server_1.apolloUploadExpress(uploads), apollo_server_express_1.graphqlExpress(function (request) { return ({ | ||
@@ -66,0 +75,0 @@ schema: _this.schema, |
{ | ||
"name": "graphql-yoga", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "./dist/src/index.d.ts", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23046
185