Comments (9)
Closing as probably no longer relevant.
from graphql-over-http.
Thanks for kicking this off, in the end after laying down the graphql-http-test
JS API and CLI there wasn't much time to deep dive into a GraphiQL integration, although that may change in the future!
Initially I did investigate creating a GraphiQL plugin, but got pretty confused about how that might work; it seems the API is in a state of change for a future GraphiQL v1 release.
If someone close to GraphiQL has any tips about how a possible integration might work, I'm all ears :)
from graphql-over-http.
What do you have in mind for a GraphiQL integration? Could you describe your ideal-world scenario?
from graphql-over-http.
One idea was an "Audits" tab, like in the Chrome inspector. There you can click to run the GraphQL HTTP tests, and see a score/report. Individual tests that fail will have a description linking to the relevant parts of the spec, and a button to click that loads the query and arguments used in the test in the main GraphiQL panes, for the user to experiment with directly.
Another spin on this idea is a plugin that is not specifically for the GraphQL HTTP tests, but allows users to create their own suites of tests that can be run on demand. Individual tests would specify:
- Test name
- Markdown test description
- Query
- Variables
- Request headers
- Expected response headers
- Expected response payload
- Etc.
The GraphQL HTTP tests would then just be a particular set of sharable tests that run via this generic plugin.
from graphql-over-http.
One idea was an "Audits" tab, like in the Chrome inspector. There you can click to run the GraphQL HTTP tests, and see a score/report. Individual tests that fail will have a description linking to the relevant parts of the spec, and a button to click that loads the query and arguments used in the test in the main GraphiQL panes, for the user to experiment with directly.
👍
from graphql-over-http.
Really, there are two audiences that will benefit from HTTP testing:
- People testing a published GraphQL server package or a GraphQL API, e.g. in CI. They will get a lot of benefit from a CLI tool like
graphql-http-test
. - Public users of GraphQL APIs that would like to be able to independently verify what they are dealing with. They will get a lot of use out of a GraphiQL audit feature.
Potentially the tests can be the same in both situations, but maybe more can be done in the CLI since it has the ability to load a custom schema + resolvers for the tests.
from graphql-over-http.
Sounds compelling. We should definitely wait for the GraphiQL plugin system to be in place before we attempt building this, but if anyone fancies building some mock-ups/wireframes that'd be really helpful.
from graphql-over-http.
@benjie is this still relevant?
from graphql-over-http.
I think it's compelling, but I also think that it probably falls somewhat outside of the scope for which this subcommittee is responsible, so I think we should close it. Would be great to see it surface as a separate project though!
from graphql-over-http.
Related Issues (20)
- Spec references RFC7231 which is obsoleted HOT 4
- Response status code as `application/json` content HOT 5
- Clarify the use of HTTP GET and POST request HOT 2
- Status codes for unauthenticated OAuth errors HOT 1
- Optional query discussion HOT 13
- GraphQL request optional parameters HOT 2
- Kitchen sink HTTP requests HOT 3
- Allow non-UTF-8 encodings HOT 2
- What is well-formed response HOT 3
- Status codes 404 and 410 HOT 1
- Clarification for `Accept: */*` HOT 8
- Should we explicitly support `Content-Type: application/graphql`? HOT 13
- Should the query property really be required? HOT 1
- Make it clear that extra keys in the request/response payloads are not allowed HOT 2
- [2023-10] Add changes promoting spec to RFC 2 status
- [2023-10] Add RFC2 status to next GraphQL Spec WG HOT 1
- Create the "Action Item" issue template
- [2023-11] Add notes about security to GraphQL-over-HTTP spec HOT 8
- [2024-01-25] Contact Apollo about persisted operations appendix HOT 2
- What is the rationale for handling Invalid parameters as 400? HOT 15
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 graphql-over-http.