Skip to content

Commit

Permalink
Set resolver name in field for name parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelmlins committed Jul 2, 2020
1 parent 237cadc commit b13fa6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/Resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Resolvers {

this.resolversType[nameType] = {
[field.name]: (...params: any[]) => {
return Model[`get${this.capitalize(field.type)}`](...params);
return Model[`get${this.capitalize(field.name)}`](...params);
}
};
}
Expand Down

0 comments on commit b13fa6f

Please sign in to comment.