Skip to content

v0.7.0

Compare
Choose a tag to compare
@leebyron leebyron released this 25 Aug 23:21
· 2481 commits to 16.x.x since this release

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 and context, 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 named Query and Mutation (#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:

  • Extending a schema allows for defining new directives (#455 @robzhu)
  • The stack of a GraphQLError is now more predictable, improving compatibility with other libraries (#452 @RylanH)