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

perform_mutate method in DjangoSerializerMutation and Getting the newly created object while still in Mutation #162

Open
IdemenB opened this issue Dec 5, 2020 · 0 comments

Comments

@IdemenB
Copy link

IdemenB commented Dec 5, 2020

Hi @eamigo86, what is the purpose of returning "return cls(**resp)" in the perform_mutate method of the DjangoSerializerMutation class? If we simple return "resp" itself we gain the ability to directly get the object that is created as a result of the Mutation.

If we do not change this, how can we get the created object while we are still in the Mutation we subclassed from DjangoSerializerMutation?

Exact location:

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