@@ -15,7 +15,7 @@ const GraphQL = require("graphql");
1515const { PubSub, withFilter } = require ( "graphql-subscriptions" ) ;
1616const hash = require ( "object-hash" ) ;
1717
18- module . exports = function ( mixinOptions ) {
18+ module . exports = function ( mixinOptions ) {
1919 mixinOptions = _ . defaultsDeep ( mixinOptions , {
2020 routeOptions : {
2121 path : "/graphql" ,
@@ -266,17 +266,6 @@ module.exports = function(mixinOptions) {
266266 } ;
267267 } ,
268268
269- /**
270- * Prepare the context params before calling the action
271- * @param {Object } params
272- * @param {String } actionName
273- * @param {Context } context
274- * @returns {Promise<Object> }
275- */
276- prepareContextParams ( params , actionName , context ) {
277- return Promise . resolve ( params ) ;
278- } ,
279-
280269 /**
281270 * Get the unique key assigned to the DataLoader map
282271 * @param {string } actionName - Fully qualified action name to bind to dataloader
@@ -361,6 +350,7 @@ module.exports = function(mixinOptions) {
361350 * @returns {Object } Generated schema
362351 */
363352 generateGraphQLSchema ( services ) {
353+ let str ;
364354 try {
365355 let typeDefs = [ ] ;
366356 let resolvers = { } ;
@@ -533,7 +523,7 @@ module.exports = function(mixinOptions) {
533523 enums . length > 0 ||
534524 inputs . length > 0
535525 ) {
536- let str = "" ;
526+ str = "" ;
537527 if ( queries . length > 0 ) {
538528 str += `
539529 type Query {
@@ -597,7 +587,7 @@ module.exports = function(mixinOptions) {
597587 "Unable to compile GraphQL schema" ,
598588 500 ,
599589 "UNABLE_COMPILE_GRAPHQL_SCHEMA" ,
600- { err }
590+ { err, str }
601591 ) ;
602592 }
603593 } ,
0 commit comments