Skip to content

Commit

Permalink
fix(core): Require resolvers for Resolve Type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav committed May 26, 2018
1 parent bacad16 commit 6889d22
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,13 @@ function addMiddlewareToSchema(
schema,
validMiddleware,
)
addResolveFunctionsToSchema({ schema, resolvers })
addResolveFunctionsToSchema({
schema,
resolvers,
resolverValidationOptions: {
requireResolversForResolveType: false,
},
})

return schema
}
Expand Down

0 comments on commit 6889d22

Please sign in to comment.