GithubHelp home page GithubHelp logo

Comments (9)

benjie avatar benjie commented on May 3, 2024

Closing as probably no longer relevant.

from graphql-over-http.

jaydenseric avatar jaydenseric commented on May 3, 2024

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.

benjie avatar benjie commented on May 3, 2024

What do you have in mind for a GraphiQL integration? Could you describe your ideal-world scenario?

from graphql-over-http.

jaydenseric avatar jaydenseric commented on May 3, 2024

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.

sungam3r avatar sungam3r commented on May 3, 2024

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.

jaydenseric avatar jaydenseric commented on May 3, 2024

Really, there are two audiences that will benefit from HTTP testing:

  1. 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.
  2. 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.

benjie avatar benjie commented on May 3, 2024

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.

ghmcadams avatar ghmcadams commented on May 3, 2024

@benjie is this still relevant?

from graphql-over-http.

benjie avatar benjie commented on May 3, 2024

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)

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.