convoychat icon indicating copy to clipboard operation
convoychat copied to clipboard

Overfetching data

Open aseerkt opened this issue 4 years ago • 0 comments

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.

aseerkt avatar Sep 08 '21 00:09 aseerkt