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

fix: content preference state on follow queries #2267

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

capJavert
Copy link
Contributor

@capJavert capJavert commented Sep 19, 2024

Fixes following (no pun intended 😆 ) issue

Basically following and followers queries already define :userId parameter which means that inside graphorm contentPreference field resolver it gets overwritten and then it always takes the state from parent entity.

This fixes it by naming the param inside the field resolver to unique name.

@rebelchris
Copy link
Contributor

Ah this similar case caused me many headaches before 😅

@capJavert capJavert merged commit 4acce21 into main Sep 20, 2024
8 checks passed
@capJavert capJavert deleted the fix-query-follow-state branch September 20, 2024 07:20
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.

3 participants