Join Slack
Powered by
Is there any documentation on how to use subscript...
# orm-help
n
nuno
10/10/2018, 6:48 PM
Is there any documentation on how to use subscriptions with prisma-binding?
n
nilan
10/11/2018, 9:00 AM
check
https://www.prisma.io/tutorials/build-a-realtime-graphql-server-with-subscriptions-ct11/
n
nuno
10/11/2018, 12:09 PM
That's a nice tutorial on how to create GraphQL Subscriptions, but it doesn't explain how a client should handle the event data from AsyncIterator
n
nilan
10/11/2018, 12:51 PM
I don't understand what you mean
nilan
10/11/2018, 12:59 PM
Section 4 describes setting up subscriptions in detail:
https://www.prisma.io/tutorials/build-a-realtime-graphql-server-with-subscriptions-ct11/#4.-add-the-postdeleted-subscription
n
nuno
10/11/2018, 2:10 PM
That uses prisma-binding subscriptions to set up subscriptions on a GraphQL API server, returning the subscription that comes from Prima
nuno
10/11/2018, 2:10 PM
But what about using prisma-binding subscriptions and handle the AsyncIterator events in typescript?
nuno
10/11/2018, 2:11 PM
My question is related to:
https://www.prisma.io/forum/t/how-to-use-subscriptions-with-prisma-binding/4640
n
nilan
10/11/2018, 2:20 PM
replied there
👍 1
2
Views
Open in Slack
Previous
Next