diff --git a/graph/resolvers/user.js b/graph/resolvers/user.js index 8cc11bba3..c75cdbf54 100644 --- a/graph/resolvers/user.js +++ b/graph/resolvers/user.js @@ -7,7 +7,7 @@ const User = { // If the user is not an admin, only return comment list for the owner of // the comments. if (user && (user.hasRoles('ADMIN') || user.id === id)) { - return Comments.getByAuthorID.load(id); + return Comments.getByQuery({author_id: id}); } return null;