• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

graphql / express-graphql / 41
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: pr_branch
DEFAULT BRANCH: master
Ran 29 Sep 2015 11:20PM UTC
Jobs 1
Files 5
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
41

push

travis-ci

leebyron
[RFC] GraphiQL when loaded in browser

This RFC adds an opt-in behavior of express-graphql to render a fully functional GraphiQL instance when loaded from a browser - determed as anything that prefers HTML over JSON from the Accept header.

GraphiQL mode is enabled by providing `graphiql: true` in the options bag. It defaults to `false` which is a reasonable default, but also ensures any existing use updating to this version will not unknowingly add this feature. The examples in the README have been changed to enable GraphiQL, ideally all future users will leave this on, cargo-cult from README is likely.

When GraphiQL is shown, the query result is run on the server first and presented immediately in the GraphiQL UI.

If you wish to use the browser as a cheap cURL, just add `&raw` to the end of the URL and GraphiQL is replaced by raw JSON output.

One small detail: any non-GraphQL GET params provided will be carried through by GraphiQL when executing queries. Ideally this covers the majority of authentication cases where are likely to look something like `https://mysite/graphql?oauth=abc123&query={yo}`.

81 of 81 new or added lines in 3 files covered. (100.0%)

428 of 428 relevant lines covered (100.0%)

9.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41.1 29 Sep 2015 11:20PM UTC 0
100.0
Travis Job 41.1
Source Files on build 41
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #41
  • a8bd662b on github
  • Prev Build on graphiql (#35)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc