graphql-sequelize

GraphQL & Relay for MySQL & Postgres via Sequelize

MIT License

Downloads
98.3K
Stars
1.9K
Committers
66

Bot releases are visible (Hide)

graphql-sequelize - v9.5.1 Latest Release

Published by mickhansen almost 2 years ago

Add missing files for previous release.

graphql-sequelize - v9.5.0

Published by mickhansen almost 2 years ago

sequelize@6, graphql@16, [email protected] support via https://github.com/mickhansen/graphql-sequelize/pull/715 by @intellix

graphql-sequelize -

Published by mickhansen over 6 years ago

  • added DateType [#621]
  • typeMapper / attributeFields now converts Sequelize.DATE into DateType (used to be String) [#621]
graphql-sequelize -

Published by mickhansen over 6 years ago

relay.createConnection: the after callback is now always called, regardless of edges being requested or not

graphql-sequelize -

Published by mickhansen over 6 years ago

Fixes regressions introduced in v7.0.0

graphql-sequelize -

Published by mickhansen over 6 years ago

  • Added support for having target in resolver/relay.sequelizeConnection being a thunk/callback
  • Removed the default generated orderBy enum on connections
graphql-sequelize -

Published by mickhansen over 6 years ago

  • dataloader-sequelize is no longer directly used by graphql-sequelize
  • graphql-sequelize will now always generate N+1 queries unless

dataloader-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

graphql-sequelize -

Published by mickhansen over 7 years ago

Internal JSON type renamed from JSON to SequelizeJSON and now exported as a reusable type:

https://github.com/mickhansen/graphql-sequelize/pull/403

graphql-sequelize -

Published by mickhansen about 8 years ago

resolver no longer adds context to findOptions by default as this can lead to memory leaks when Sequelize does deep cloning.

graphql-sequelize -

Published by mickhansen about 8 years ago

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.

graphql-sequelize -

Published by mickhansen about 8 years ago

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.

graphql-sequelize -

Published by mickhansen about 8 years ago

relay connections now support an after argument for post result manipulation, format of result is {source, args, where, edges, pageInfo}

graphql-sequelize -

Published by mickhansen over 8 years ago

Support cache argument for attributeFields to resolve issues with calling attributeFields multiple times on the same Model when Model has an ENUM field.

graphql-sequelize -

Published by mickhansen over 8 years ago

Now supports paginating relay connections with MySQL

graphql-sequelize -

Published by mickhansen over 8 years ago

context is king (removes rootValue in favor of context + info)

graphql-sequelize -

Published by mickhansen over 8 years ago

Now supports async before/after

graphql-sequelize -

Published by mickhansen over 8 years ago

Now properly supports non-field (expression) orders in relay connections. Thanks to @brad-decker

graphql-sequelize -

Published by mickhansen over 8 years ago

Support graphql 0.5.0, context/info changes.
Now follows SEMVER regardless of graphql/graphql-relay not following, so expect bumps often.

graphql-sequelize -

Published by mickhansen over 8 years ago

Adds option allowNull to attributeFields

graphql-sequelize -

Published by mickhansen over 8 years ago

Adds support for defaultAttributes to resolvers. https://github.com/mickhansen/graphql-sequelize#default-attributes