Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 131 forks source link

Nested Mutation operationAfter create hook #415

Open marktani opened 6 years ago

marktani commented 6 years ago

Issue by Toosick Tuesday Nov 21, 2017 at 00:35 GMT Originally opened as https://github.com/graphcool/prisma/issues/1308


I have a batch with multiple samples and samples with multiple tests. When I create a batch I expect the operationAfter hook Test.create to invoke, it does not. operationBefore & doing the same logic with a subscription works. operationAfter is the only 1 that doesn't work. Is this on purpose or a bug?

marktani commented 6 years ago

Comment by steve-a-jones Thursday Nov 30, 2017 at 17:52 GMT


@Toosick - Experiencing this as well. @marktani - is this by design? If so, what is the rationale? Subscriptions should suffice in the meantime..

usulpro commented 6 years ago

I faced this not only with nested operationAfter with any

upd: after a short research found out that this happens when using updateOrCreateSometh