Skip to content

Commit

Permalink
Check null resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
freiksenet committed Dec 19, 2017
1 parent 2e2c9b1 commit 1e3bb14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stitching/mergeSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export default function mergeSchemas({
const extensions: Array<DocumentNode> = [];
const fragments = {};

if (!resolvers) {
resolvers = {};
}

if (!visitType) {
visitType = defaultVisitType;
}
Expand Down

0 comments on commit 1e3bb14

Please sign in to comment.