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

Updates removing other fields if not supplied: Might not be specific to graphene-django-extras #193

Open
paulsermon-gemfair opened this issue Dec 20, 2022 · 0 comments

Comments

@paulsermon-gemfair
Copy link

I'm looking for a little help:

I'm using the DjangoSerializerMutation to create and update mutation using UpdateField.

However, I have noticed an issue:

If I mutate the object with just one propertly, eg, I send an update to the name of a person, but I don't send anything for any other field:

{person: {id: 12, name: John}

This works fine for flat propeties on a model, but it's wiping my foreign keys, unless I supply them.

Is this as expected? Is there a way to bypass? Is this a known issue with Graphene Django?

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