Skip to content

Commit

Permalink
refactor(field): naming coherence
Browse files Browse the repository at this point in the history
naming coherence to make the code simpler to understand throughout
  • Loading branch information
bruno12mota authored and tothandras committed Oct 9, 2015
1 parent cb9009f commit c8801db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/field/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ function getFields(graffitiModels) {
};
}

function getSchema(collections) {
const graffitiModels = getModels(collections);
function getSchema(mongooseModels) {
const graffitiModels = getModels(mongooseModels);
const fields = getFields(graffitiModels);
const res = new GraphQLSchema(fields);
return res;
return new GraphQLSchema(fields);
}

export default {
Expand Down

0 comments on commit c8801db

Please sign in to comment.