Giter VIP home page Giter VIP logo

Comments (8)

pekkah avatar pekkah commented on August 15, 2024 1

@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.

deinok avatar deinok commented on August 15, 2024

@pekkah So, are you interested?

from server.

joemcbride avatar joemcbride commented on August 15, 2024

@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.

deinok avatar deinok commented on August 15, 2024

@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.

joemcbride avatar joemcbride commented on August 15, 2024

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.

pekkah avatar pekkah commented on August 15, 2024

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.

deinok avatar deinok commented on August 15, 2024

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.

pekkah avatar pekkah commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.