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

FieldResolver populates already populated fields #79

Open
HarishTeens opened this issue Feb 1, 2021 · 1 comment
Open

FieldResolver populates already populated fields #79

HarishTeens opened this issue Feb 1, 2021 · 1 comment
Assignees

Comments

@HarishTeens
Copy link
Member

Whenever a field resolver tries to populate an already populated nested field, it throws a "Maximum Call size exceeded Error".

Steps to reproduce

  • generate JWT of a new user
  • use authUser mutation and request for clubAccess

Fix

The field resolvers should be intelligent enough not to populate the already populated objects which not only would avoid the error, but also helps the datasources send in the populated nested field if it already has it.

@HarishTeens
Copy link
Member Author

Exploring ways of resolving this with dataloaders

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

2 participants