v0.7.0
Thanks to many contributors, GraphQL v0.7.0 contains many improvements and a few new utilities for those building tools using graphql-js.
Most exciting is that the schema language is now more fully featured than ever and you can create new usable schemas directly from that language, making GraphQL easier to use than ever. Huge thanks to @lacker for his vision and effort in making this happen.
Breaking:
- Default resolver behavior now provides
args
andcontext
, allowing for more powerful resolvers on your existing data objects (#468 @lacker) - GraphQLError has been refactored to provide more information and behave more like the built-in Error object (8df7894)
New:
- GraphQL schema documents can now specify descriptions via doc-block style comments (#463 #464)
- Schema language documents no longer have to specify a
schema
declaration if their root types are namedQuery
andMutation
(#470) - GraphQLSchema generated by referencing introspection, read from a schema language document, or extending an existing schema can now be used for execution (#469)
New Utilities:
buildSchema()
is a utility for creating a usable GraphQLSchema directly from the GraphQL schema language (#471 @lacker)separateOperations()
is a utility for splitting up a GraphQL document with many operations into multiple smaller documents with one operation each (#456)
Fixed: