Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

v2.1.0

Latest
Compare
Choose a tag to compare
@bhoriuchi bhoriuchi released this 09 Oct 23:27
· 111 commits to master since this release
  • added fieldDef to the resolver context which points to the fields definition. This makes reading custom metadata set on the field for things like plugins easier.
  • Modified middleware resolver to bypass middleware for things like type resolvers
  • added eslint and linted all code in /src
  • added eventing in the factory and definition to forward up logs that can be passed to a logger like bunyan
    • additionally, any logs with an error level will throw an exception during the make process (by design)
  • added a validation check to the definition after compile which emits an error to the factory instead of the previous behavior where it would log to the console.
  • updated build scripts to use latest version of rollup and babel-env preset
  • added a log method to the definition which forwards up to the factory
  • fixed a middleware bug where failed middleware would still execute the resolver function instead of immediately failing the request.
  • added the graphql-factory-types plugin as part of the library. it can be added with the string literal types in the plugins array of the make method.
    • this will be the same for any included plugins shipped in the future