Comments (8)
@deinok as there are no common "standards" yet I suppose the best way is to be compatible with how Apollo handles things as it seems to be the "most" popular.
from server.
@pekkah So, are you interested?
from server.
@deinok You're welcome to add contributions (in general, this org needs many more contributors). @pekkah has the "playground" component, which may be GraphiQL?
https://github.com/graphql-dotnet/server/tree/master/src/Ui.Playground
I'm not seeing all of the source for that in this repo.
from server.
@joemcbride Also I think that we should talk with other GraphQL lib providers and Facebook.
Seems like there is no standard about serving GraphQL over HTTP, only conventions.
For example:
In case of GraphQL error -> HTTP 200 or HTTP 5XX
The Spec only talks about the part that is solved in the lexer and in the core.
from server.
Yeah that's not part of the spec. I've been trying to follow what the graphql-js projects have done. We can look to the express-graphql
project for some guidance.
https://github.com/graphql/express-graphql/blob/master/src/index.js
That project does 500 errors and a number of 400 errors. It would probably be pretty safe to follow what they are doing.
I'm in a Slack group with all of the maintainers of the major libraries if we need to reach out to them.
from server.
Hey @deinok help would be surely appreciated :) If you want to make an PR for the GraphiQL middleware similar to the Ui.Playground one already included that would be good start.
from server.
It would be nice to have a shared convention or spec for all the lib mantainers.
Probably we should start asking for it in https://github.com/facebook/graphql
from server.
GraphQL Playground is built on top of the GraphiQL so not sure if we need a separate middleware for it though. In any real world project I would go with customized GraphQL Playground or GraphiQL and only use the provided middlewares for demo/prototyping purposes.
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
- Add CSRF protection
- 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
- Could not load type 'GraphQL.Server.Transports.AspNetCore.IGraphQLRequestDeserializer' from assembly HOT 2
- Limit number of queries in batch request
- 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
- Subscriptions set-up netcore 6.0, GraphQL 7.1.1 HOT 6
- HttpStatus Code on GRAPHQL_VALIDATION error HOT 7
- Is there a way to change the status code of the authorization extension from 400 to 401? HOT 11
- 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.