Files
talk/graph/resolvers/action.js
T
2017-01-24 13:45:06 -07:00

13 lines
281 B
JavaScript

const Action = {
// This will load the user for the specific action. We'll limit this to the
// admin users only.
user({user_id}, _, {loaders, user}) {
if (user.hasRole('ADMIN')) {
return loaders.Users.getByID.load(user_id);
}
}
};
module.exports = Action;