Packages

graphql

17.1.0 · 4 Nov 2026MIT74.5M / weekRepositorynpmAtom feed

Your version

0.5.0

8 Apr 2016Where it was published

0.13.2 is the newest release of 0.5.x.

npm marks 0.5.0 as deprecated: No longer supported; please update to a newer version. Details: github.com/graphql/graphql-js

In short

2 breaking9 changed

  • Breaking

    In addition to any relevant breaking changes from the spec, it also has made some breaking changes to its API.

  • Breaking

    Experimental schema IDL no longer allows duplicate query types. (ffe76c5)

Release note

This version is the first reference implementation fully compatible with GraphQL — April 2016. In addition to any relevant breaking changes from the spec, it also has made some breaking changes to its API.

Thanks so much to those who contributed issues and pull requests for your help in improving GraphQL!

Breaking:

  • The graphql and execute functions now accept a context parameter which is distinct from rootValue and available as the third argument to all resolve functions. The additional information is now the fourth argument to resolve functions. Any resolve function which currently uses the third argument will need to be updated in order to use this version of graphql-js.

  • Types can now be explicitly provided to new GraphQLSchema({ types: [...] }). Types which implement an interface but are otherwise not referenced as a field return type are no longer automatically added to the Schema! Provide types like this directly to new GraphQLSchema to ensure they are included in order to use this version of graphql-js. This fixes a long-standing bug which made it difficult to build multiple related Schema with the same type instances.

  • Spec compliance: Directives are now defined and introspected with an array of locations they can be legally placed, rather than a set of booleans.

New:

  • Spec compliance: Overlapping fields must have compatible response shapes (c034de9)

  • More support for the experimental schema IDL: (#325) (#323) (fdafe32)

Fixes:

  • Spec compliance: @skip and @include are now commutative. (#335) (47f87fa)

  • Breaking

    Experimental schema IDL no longer allows duplicate query types. (ffe76c5)

  • No longer sends incorrect error messages when a response name is not provided

  • Visitor now correctly encounters both enter and leave when editing the root node in an AST

  • Visitor helpers are now directly exported (5ea2ff1)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.