Releases: arackaf/mongo-graphql-starter
v0.10.1
v0.10
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 wherenull
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 rootgraphql
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
v0.9.1
v0.9.0
Some improvements in null
handling. Most of these changes are fixes to bugs that existed before.
null
values for exact matches, andne
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
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$pull
ed; 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
v0.7.2
v0.7.1
v0.7.0
Version 0.7
Breaking changes
- Brand new API for adding relationships. Check the docs!
graphql
andmongodb
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