Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

user data added to context #14

Merged
merged 3 commits into from
Feb 20, 2020
Merged

Conversation

dabit1
Copy link

@dabit1 dabit1 commented Nov 10, 2019

With this PR we'll be able to get the decoded user data from context. So in the resolvers we can get user data like this:

me: (parent, args, { user }) => {
      console.log(user.id);
},

@dabit1 dabit1 mentioned this pull request Nov 10, 2019
@bionicles
Copy link

Merge please, then we can make @user directive

@mohamedGamalAbuGalala
Copy link
Contributor

Any updates on this 🤔

@johnymontana
Copy link
Member

Good idea, thanks @dabit1!

@johnymontana johnymontana merged commit 92786b9 into grand-stack:master Feb 20, 2020
@mohamedGamalAbuGalala
Copy link
Contributor

This needs to be updated in the README.md file

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants