Skip to content

Releases: arackaf/mongo-graphql-starter

v0.10.1

25 Aug 01:10
Compare
Choose a tag to compare

one-to-many relationships marked as readonly no longer emit update items in schema

v0.10

23 Aug 14:55
Compare
Choose a tag to compare

Breaking changes

  • Appropriate return values in queries and mutations are now marked as non-null in the schema. This includes the success value in mutations. Before, there were circumstances where null was returned, mainly if a user's middleware opted to cancel out of a mutation. Now false is returned, here.

Changes to will help with tooling:

  • entireSchema.gql is now created in the root graphql folder. This file contains the entire endpoint's schema, and can be integrated with a GraphQL plugin in VS Code

  • typings option now allows you to create TypeScript typings for the endpoint

Misc Changes

  • All generated code is now formatted with Prettier.

v0.9.2

24 May 17:46
Compare
Choose a tag to compare

Update esm

v0.9.1

23 May 22:48
Compare
Choose a tag to compare

Updated a few dependencies to remove a security vulnerability.

v0.9.0

14 Mar 22:16
Compare
Choose a tag to compare

Some improvements in null handling. Most of these changes are fixes to bugs that existed before.

  • null values for exact matches, and ne filters will now work reliably (some would error out before)
  • null values for any other filter will now be ignored (they would usually error out before)
  • remove the _count filter that was incorrectly being created for nested objects (which never worked)

v0.8.0

27 Feb 03:44
Compare
Choose a tag to compare

This should be the last minor release before 1.0!

New Features: Transaction support! See the docs for details.

Breaking Changes:

  • For one-to-many relationships where the key is _id, when you delete one of the objects, all of the connected objects with a foreign key pointing to that value will be updated: if the foreign key is an array, then that _id will be $pulled; if it's a single value, then it will be cleared.

  • The hooks api has changed, slightly. For the hooks functions that take the standard root, args, context, ast values, these are now contained in a single object literal, so you can just destructure the ones you want, without needing all the positional values.

v0.7.3

26 Sep 02:09
Compare
Choose a tag to compare

Fix some bugs around relationships with non-_id keyFields

v0.7.2

25 Sep 05:04
Compare
Choose a tag to compare

Fix bug whereby nested one-to-many relationship creations were not triggering the appropriate hooks.

v0.7.1

24 Sep 03:59
Compare
Choose a tag to compare

Switch to non-deprecated Mongo driver methods.

v0.7.0

24 Sep 01:19
Compare
Choose a tag to compare

Version 0.7

Breaking changes

  • Brand new API for adding relationships. Check the docs!
  • graphql and mongodb are now just peerDependencies. They will NOT be installed with this package. Be sure to include them in your project's package.json.

New features

  • Readonly types added
  • one-to-many relationships added
  • New option to specify your own hooks file