Comments (6)
Small note - you may remove builder.Services.AddSingleton<ISchema, MotostoreSchema>(services => new MotostoreSchema(new SelfActivatingServiceProvider(services)));
and change .AddSchema<MotostoreSchema>()
to .AddSelfActivatingSchema<MotostoreSchema>()
.
from server.
The user interface you're using to issue the GraphQL subscription request should not be making a POST call. WebSocket connections are upgraded GET connections. What are you using to make the GraphQL request? The GraphQL.NET Server project supports 4 different UI libraries, 3 of which support subscriptions -- GraphiQL, Playground, and Altair -- each of which can be used to test subscriptions.
https://github.com/graphql-dotnet/server#ui-configuration
from server.
It is also possible to use Postman to test a GraphQL subscription, but you will need to follow the graphql-ws protocol and manually send the proper commands to initialize the connection and send the request to start a subscription.
from server.
Please note that GraphQL.NET Server does not currently support subscriptions over SSE connections.
from server.
You may also want to review the samples included with the project:
https://github.com/graphql-dotnet/server#samples
Besides the authorization sample, each sample includes and demonstrates proper subscription support.
from server.
@sungam3r
With your suggestions, and proper implementation of messageStrem
its works.
Thanks. I will close this
from server.
Related Issues (20)
- Using Altair UI while not connected to the internet HOT 3
- How to use plugins in Altair? HOT 6
- Duende Identity Server 4 / GraphQl Authorize - Always error 403 HOT 16
- Missing classes while upgrading to GraphQL.Server.All from GraphQL.Server.* libraries HOT 11
- Disable ReadFormOnPost by default
- Consider adding CSRF protection for GET requests
- Content Security Policy and CDN Scripts HOT 8
- I'm attempting to implement a dual authentication scheme and I'm wondering whether it's feasible. If it is possible, could you assist me by pointing out any mistakes I might be making? HOT 13
- Invalid HTML HOT 2
- [Feature] Add proper support of Accept HTTP header HOT 2
- Root Query Issue HOT 4
- Return 406 on unsupported Accept header
- Come up with something for comments about Accept header
- Question: Extensibility to use other transport protocol? HOT 5
- Question about upgrading from 6xx to 7xx: VoyagerOptions HOT 4
- HttpStatus Code on GRAPHQL_VALIDATION error HOT 6
- Is there a way to change the status code of the authorization extension from 400 to 401? HOT 10
- Validation rules and Policies errors after update to v7 HOT 11
- .net core 7 AddAuthorizationRule not work HOT 29
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from server.