Closed namttdh closed 7 months ago
The error you show happens during execution of the selection, not the root field. I explained this behaviour better in https://github.com/nuwave/lighthouse/commit/c6748470694afb08ac424afa1308282519a9bd03.
@spawnia any change we can make it for nested?
Because base on that https://lighthouse-php.com/master/eloquent/nested-mutations.html#partial-failure
it should to to work like i expected.
Or else what case does transaction work?
I am saying there is an error when getting the result. Try removing the orderBills field from the selection.
@spawnia, ahh, i see, that work now. Thank you!
Describe the bug I try using tranasction with Lighouse but it seem it not working
lighthouse.php
My Schema
Query Run
Variable:
Error when run (i remove fields deleted_at to make this error) and was expect order not insert to database. But it still insert to postgres.
Lighthouse Version Laravel 10.10 PHP-lighouse 6.36