Graphql Factory Versions Save

A toolkit for building GraphQL

v3.0.0-alpha.0

6 years ago
  • First alpha release with new API

v2.1.0

6 years ago
  • 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

v2.0.0

6 years ago
  • Added middleware functionality for resolver functions
  • Added more plugin functionality

v1.1.0

7 years ago
  • added plugin hooks
  • added plugin registry
  • added hasPlugin method
  • resolved compatibility issue/bugs with several util functions that rely on info from a field resolve

v1.0.2

7 years ago
  • Bugfix for missing resolveFunction context properties

v1.0.1

7 years ago
  • Bugfix for externalTypes

v1.0.0

7 years ago
  • Complete rewrite (passing all original tests)
  • Separated functionality into classes
  • Now the main factory lib exports several classes that can be used for creating factory plugins
  • Definitions are now always compiled in order to remove redundant processing of definitions

v0.4.8

7 years ago
  • removed safeQuotes option from toObjectString now all double quotes will be escaped
  • added string syntax for enums Enum::<ENUM> in toObjectString function
  • updated GraphQL dev dependency to ^0.8.0 and tested with 0.8.2
  • updated rollup dev dependency to ^0.36.0
  • added new tests for toObjectString

v0.4.7

7 years ago
  • Added regex to replace " in strings of toObjectString method

v0.4.6

7 years ago
  • toObjectString method now takes an options hash as its second argument
    • Removes null values by default unless keepNulls=true in the options hash
    • Option to remove leading and trailing braces with noOuterBraces=true in the options hash