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

Overfetching data #69

Open
2 tasks
aseerkt opened this issue Sep 8, 2021 · 0 comments
Open
2 tasks

Overfetching data #69

aseerkt opened this issue Sep 8, 2021 · 0 comments

Comments

@aseerkt
Copy link

aseerkt commented Sep 8, 2021

In room-resolver.ts

  • Overfetching rooms
    We have two queries listRooms and listCurrentUserRooms.
    When you execute both queries on the client side, we run into a situation where room data is over fetched.

  • Overfetching message author
    There is a possibility that a user can be a part of multiple rooms and many messages can have the same users.
    You can fix this by using field resolver with dataloader.

The second one is a must I think.

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

No branches or pull requests

1 participant