apollographql / apollographql/fullstack-tutorial

Me Resolver on final is misleading

Open
#137 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
808
PR merge metrics
No merged PRs in 30d

Description

This is the resolver for me on final

```
me: async (_, __, { dataSources }) =>
dataSources.userAPI.findOrCreateUser(),
```

However it could (and probably should) be

```
me: async (_, __, context) => context.user
```

which is the logged in user authenticated by the authorization headers.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.