Postgres subscriptions (working stub example) #6404
Unanswered
Alorien1984
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Product
Hot Chocolate
A warm welcome to the esteemed developers and members of the HotChocolate community!
I'm trying to figure out the relationship between HotCgocolate subscriptions and the PostgresQL notification mechanism.
I have notifications being created in PostgresQL under the channel name 'hotchocolate_subscriptions'.
Example:
NOTIFY "hotchocolate_subscriptions", 'This is payload!'
I have connected AddPostgresSubscriptions in this way:
I defined a subscription in the Subscription class this way:
The project starts correctly, but I don't see any messages by the name of this channel in HotChocolate GraphQL UI.
Can I find a correct example somewhere? The documentation didn't give any answers.
Would you please be so kind as to you tell me what I am doing wrong?
Regards.
Beta Was this translation helpful? Give feedback.
All reactions