Skip to content

Commit

Permalink
allowing use of getTypes cache through getSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
zopf committed Apr 5, 2016
1 parent 20aba5c commit 4f59703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ function getMutationField(graffitiModel, type, viewer, hooks = {}, allowMongoIDM
*/
function getFields(graffitiModels, {
hooks = {}, mutation = true, allowMongoIDMutation = false,
customQueries = {}, customMutations = {}
customQueries = {}, customMutations = {}, rebuildCache = true
} = {}) {
const types = type.getTypes(graffitiModels);
const types = type.getTypes(graffitiModels, rebuildCache);
const {viewer, singular} = hooks;

const viewerFields = reduce(types, (fields, type, key) => {
Expand Down

0 comments on commit 4f59703

Please sign in to comment.