Replies: 1 comment 1 reply
-
The smart subscription plugin doesn't really know or care about relations. It's basically just a way to say when x event is triggered, re-exute the resolvers for this field. If you want to re-load a list when an item is created, you just need to to subscribe to an event that is triggered when items are created on your relation field |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having difficulties understanding how smartsubscriptions work with prisma relations.
Let's say I have an object called Inventory and an object InventoryItem.
For this I build a query for Inventory that has a smart subscription, and start listening to that. However when I create a new item using a mutation that creates a new InventoryItem, how do I trigger the update on the inventory subscription?
Beta Was this translation helpful? Give feedback.
All reactions