Subscription In Graphql API #3892
-
Hi Anyone Can Share the code for making subscription in graphql in dot net using graphql.server.transport.aspnetcore |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
There is extensive documentation in the readme file here for setting up the server, and typically no additional configuration is necessary to enable subscriptions: https://github.com/graphql-dotnet/server Near the bottom is a list of sample projects: https://github.com/graphql-dotnet/server?tab=readme-ov-file#samples Source code is here: https://github.com/graphql-dotnet/server/tree/master/samples Most of the samples include a working GraphQL subscription functionality. I would suggest starting with the 'Basic' sample. These samples support subscriptions:
These samples do not include subscription functionality:
GraphQL.NET has some limited documentation on subscriptions here: https://graphql-dotnet.github.io/docs/getting-started/subscriptions/ Please ask if you have more specific questions. |
Beta Was this translation helpful? Give feedback.
There is extensive documentation in the readme file here for setting up the server, and typically no additional configuration is necessary to enable subscriptions:
https://github.com/graphql-dotnet/server
Near the bottom is a list of sample projects:
https://github.com/graphql-dotnet/server?tab=readme-ov-file#samples
Source code is here:
https://github.com/graphql-dotnet/server/tree/master/samples
Most of the samples include a working GraphQL subscription functionality. I would suggest starting with the 'Basic' sample.
These samples support subscriptions:
These samples do not iβ¦