(_source, _args, context, queryInfo)
| 84 | description: 'The viewer query can be used to return the current user data.', |
| 85 | type: new GraphQLNonNull(parseGraphQLSchema.viewerType), |
| 86 | async resolve(_source, _args, context, queryInfo) { |
| 87 | try { |
| 88 | return await getUserFromSessionToken(context, queryInfo, 'user.', false); |
| 89 | } catch (e) { |
| 90 | parseGraphQLSchema.handleError(e); |
| 91 | } |
| 92 | }, |
| 93 | }, |
| 94 | true, |
| 95 | true |