Adding diff and fix to utils

This commit is contained in:
Belen Curcio
2017-11-24 13:09:30 -03:00
parent 741419f47b
commit e2af3470dc
+1 -1
View File
@@ -52,7 +52,7 @@ const decorateUserField = (typeResolver, field) => {
// The default resolver for the user decorator is loading the user by id.
let fieldResolver = (obj, args, ctx) =>
ctx.loaders.Users.getByID.get(obj[field]);
ctx.loaders.Users.getByID.load(obj[field]);
// The resolver can be overridden however. This decorator will simply wrap the
// field with a permission check.