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

graphql / graphql-js / 868
98%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2016 12:27AM UTC
Jobs 1
Files 131
Run time 9s
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
868

Pull #326

travis-ci

leebyron
[RFC] Add explicit context arg to graphql execution

This *BREAKING* change introduces a new argument to the GraphQL execution API which is presented to resolution functions: `context`.

This solves a long-standing point of confusion about the correct way to represent authentication or a "viewer context" in which a query is executed.

Previously, we suggested that the `rootValue` contain any authentication tokens, however this led to awkward code:

```
resolve: (val, args, { rootValue: { authToken } }) { ... }
```

Which can now be written as:

```
resolve: (val, args, authToken) { ... }
```

The `info` object is still created and provided to resolution functions, and the `rootValue` is still provided within it, however it is now the *fourth* argument rather than the *third*.
Pull Request #326: [RFC] Add explicit context arg to graphql execution

36 of 36 new or added lines in 5 files covered. (100.0%)

6186 of 6222 relevant lines covered (99.42%)

1317.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 868.1 25 Mar 2016 12:27AM UTC 0
99.42
Travis Job 868.1
Source Files on build 868
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #868
  • Pull Request #326
  • PR Base - master (#866)
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