GraphQL & Relay for MySQL & Postgres via Sequelize
Add missing files for previous release.
sequelize@6, graphql@16, [email protected] support via https://github.com/mickhansen/graphql-sequelize/pull/715 by @intellix
relay.createConnection: the after callback is now always called, regardless of edges being requested or not
Fixes regressions introduced in v7.0.0
target
in resolver
/relay.sequelizeConnection
being a thunk/callbackdataloader-sequelize has been removed to allow users to make their own decisions regarding batching and to avoid automatically polluting the sequelize object.
For improved performance and less database load (in terms of query count) we suggest implementing createContext from https://github.com/mickhansen/dataloader-sequelize
Internal JSON type renamed from JSON
to SequelizeJSON
and now exported as a reusable type:
resolver
no longer adds context
to findOptions
by default as this can lead to memory leaks when Sequelize does deep cloning.
This major release changes the general philosophy of the project to rely on batching rather than includes. Almost all use cases will experience great performance improvements. There is a minor performance degradation in cases where the query is only one level deep with a single belongsTo relation.
simpleAST
from resolver
info (use simpleAST user-side now)