Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance of me query and move functionality into auth models #320

Merged
merged 3 commits into from
May 6, 2020

Conversation

mposner305
Copy link
Contributor

Improved the performance of the graphQL me query by not having to query the DB to return the results. The information is already supplied in an object passed in.

Added new method in user.local.schema.js and user user.passport.local.schema.js called getCurrentUser(). This allows for different ways to pull the information based on authorization type.

The resolver for me now calls the getCurrentUser() method to get the information needed

@mckaymic mckaymic requested a review from yingwang-us May 6, 2020 14:15
@yingwang-us yingwang-us merged commit 09aed24 into razee-io:master May 6, 2020
@mposner305 mposner305 deleted the rh_497 branch May 6, 2020 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants