Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
fix(filterToSchema): remove map in favor of plain object
Browse files Browse the repository at this point in the history
some links (e.g. apollo-upload-client) may expect a plain object with constructor.name === 'Object'
  • Loading branch information
yaacovCR committed Dec 26, 2019
1 parent 2a845af commit 3a4d5f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transforms/FilterToSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function filterToSchema(
});
});

const newVariables: Record<string, any> = Object.create(null);
const newVariables: Record<string, any> = {};
usedVariables.forEach(variableName => {
newVariables[variableName] = variables[variableName];
});
Expand Down

0 comments on commit 3a4d5f9

Please sign in to comment.