-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add before_create_obj hook to BatchCreateMutation #130
Conversation
89ae9ec
to
11d15b3
Compare
@tOgg1 I would be glad to get some feedback. |
@tOgg1 Sorry to ping you again, but it would help us if we could use this feature. |
Hi @hansegucker. Thank you for being patient. I will do a new round of updates and improvements on this library in the coming week. I'll make sure to fast-track this PR and the underlying issues. |
Hi @hansegucker. I've pulled your branch and done some initial testing. There is a single issue with the test Moving the call to before_create_obj and adding another save there, seems to fix the issue: obj = Model(**model_field_values)
cls.before_create_obj(info, input, obj)
obj.save()
# Handle one to one rels
if len(one_to_one_rels) > 0:
... Please have a look at this. Could you also move the When this is fixed the PR should be ready to be merged. |
11d15b3
to
99efd09
Compare
Hey, thank you! I fixed the mentioned things and look forward to get this merged. |
Hi. The save is still in the wrong place. It needs to be above the line |
99efd09
to
2152f12
Compare
Oh, sorry, I missed that. I hope that now everything is fine. |
@tOgg1 Can we get a release with this change? That would be super helpful. |
@hansegucker v0.12.0 out today. |
Advances #126