File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ module.exports = function(mixinOptions) {
236236 if ( processedServices . has ( serviceName ) ) return ;
237237 processedServices . add ( serviceName ) ;
238238
239- if ( service . settings . graphql ) {
239+ if ( service . settings && service . settings . graphql ) {
240240 // --- COMPILE SERVICE-LEVEL DEFINITIONS ---
241241 if ( _ . isObject ( service . settings . graphql ) ) {
242242 const globalDef = service . settings . graphql ;
@@ -510,7 +510,9 @@ module.exports = function(mixinOptions) {
510510 createLoaders ( req , services ) {
511511 return services . reduce ( ( serviceAccum , service ) => {
512512 const serviceName = this . getServiceName ( service ) ;
513-
513+ if ( ! service . settings ) {
514+ service . settings = { }
515+ }
514516 const { graphql } = service . settings ;
515517 if ( graphql && graphql . resolvers ) {
516518 const { resolvers } = graphql ;
You can’t perform that action at this time.
0 commit comments