(source, args, {authToken})
| 17 | id: {type: new GraphQLNonNull(GraphQLID)} |
| 18 | }, |
| 19 | async resolve(source, args, {authToken}) { |
| 20 | isAdminOrSelf(authToken, args); |
| 21 | const user = await r.table('users').get(args.id); |
| 22 | if (!user) { |
| 23 | throw errorObj({_error: 'User not found'}); |
| 24 | } |
| 25 | return user; |
| 26 | } |
| 27 | }, |
| 28 | login: { |
| 29 | type: UserWithAuthToken, |
no test coverage detected