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

Investigate reducing db queried fields based on gql request #268

Open
ermish opened this issue Sep 19, 2023 · 1 comment
Open

Investigate reducing db queried fields based on gql request #268

ermish opened this issue Sep 19, 2023 · 1 comment
Assignees
Labels
backend enhancement New feature or request graphQL

Comments

@ermish
Copy link
Collaborator

ermish commented Sep 19, 2023

Summary

In apollo, you can choose what fields you want returned. Currently, we query all of them from the db. There's an optimization to reduce what's queried from the db to only include what the user requested.

for example, if they queried facilities without healthcare professionals, we shouldn't do the extra db call

@ermish ermish converted this from a draft issue Sep 19, 2023
@ermish ermish self-assigned this Sep 19, 2023
@ermish ermish added enhancement New feature or request graphQL backend labels Sep 19, 2023
@Anissa3005
Copy link
Contributor

@ermish Can I work on this as well? This seems very interesting to learn!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend enhancement New feature or request graphQL
Projects
None yet
Development

No branches or pull requests

2 participants