-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
mutationType not working on type policies declaration #7443
Comments
@zaguiini If you have a chance to try a manual binary-ish search, it would be useful to know which beta version of v3.3 introduced the regression. We had 18 betas ( |
Hey @benjamn, it was EDIT: This is the commit which includes changes from beta 2 to beta 3. I think the problem lies on |
@zaguiini Thanks! That's a very useful clue for my investigation. 🙏 |
This should be fixed in |
Intended outcome:
To use a different mutation root type than
Mutation
.Actual outcome:
Setting
mutationType
totrue
on the custom mutation type does not make any difference and Apollo attempts to write cache toMutation
instead of the desired one.How to reproduce the issue:
It's proprietary code. I'll try my best to describe.
Root mutation is called
TalentMutation
. I've set:Throws the following warning:
To address this problem (which is not a bug in Apollo Client), either ensure all objects of type TalentPortalSettingOps have an ID or a custom merge function, or define a custom merge function for the Mutation.talentPortalSetting field, so InMemoryCache can safely merge these objects.
Versions
Additional information
It's properly working on
3.2.9
. Not sure what's changed. I haven't seen anything relevant on the CHANGELOG, so it must be something changed by accident.The text was updated successfully, but these errors were encountered: