Skip to content

Subscriptions help #732

Answered by hayes
thuperthecret2 asked this question in Q&A
Jan 2, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Added an example here, hope this helps: https://github.com/hayes/pothos/tree/main/examples/prisma-subscriptions

The short answer is that prisma doesn't support automatically publishing events when things change, so you will need to manually "publish" events when you mutate data. The exact format for how you handle this is up to you, but hopefully the example above will help

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@thuperthecret2
Comment options

@thuperthecret2
Comment options

Answer selected by thuperthecret2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants