Creates a fully functioning, performant, extensible GraphQL endpoint from a Mongo DB. Supports middleware, Mongo 4 transactions.
MIT License
Published by arackaf over 6 years ago
Improve validation of provided _id arg in the update single mutation. Will now allow a missing value if the middleware adds on in.
Published by arackaf over 6 years ago
Added the ability to create nested relationship objects in the create mutations. Plus some minor cleanup and bug fixes.
Published by arackaf over 6 years ago
Fix a bug so that relationship objects will load off of a nested object, ie something created with arrayOf
or objectOf
Published by arackaf over 6 years ago
Fix bug whereby regexes were not being escaped for string contains, startsWith, and endsWith filters.
Published by arackaf over 6 years ago
Small tweaks and fixes.
Published by arackaf over 6 years ago
You can now add objects right to relationship arrays from update mutations.
Published by arackaf over 6 years ago
Sorting options in collection relationships
Published by arackaf over 6 years ago
Options to exclude certain queries and mutations from the generated endpoint
Published by arackaf over 6 years ago
Bug fixes: success: true was not being returned from creations, and errors would sometimes be raised when creating a new object that had relationships
Published by arackaf over 6 years ago
Fixed a bug whereby creations would error if you didn't select anything from the new object
Published by arackaf over 6 years ago
Add manual query args to get endpoint.
Remove same from filters input (or what gets passed to OR).
Small code cleanup.
Published by arackaf over 6 years ago
0.6.2 Improved error messages for Mongo operations, and lifecycle hook processing.
Published by arackaf over 6 years ago
Small bug fix for ADDTOSET
Published by arackaf over 6 years ago
ADDTOSET mutation added for primitive array types. See the docs for more info.
For arrays of other types, the updates argument is now called Updates rather than _Update. For example
comments_UPDATE: {index: 0, Updates: { upVotes_INC: 1 } }
instead of
comments_UPDATE: {index: 0, Comment: { upVotes_INC: 1 } }
This is a breaking change, hence the minor version bump.
Published by arackaf almost 7 years ago
Bulk updates, multi updates, and a slightly different update arg for single updates, which is why I bumped the minor version on this one.
That should be the only breaking change, though. For single updates, the <Type>
argument is now Updates
.
Published by arackaf almost 7 years ago
Bug fixes, and an @std/esm upgrade.
Published by arackaf almost 7 years ago
Count filter for array types
Published by arackaf almost 7 years ago
Tweak schema generation for manual query args
Published by arackaf almost 7 years ago
Add custom query args
Published by arackaf almost 7 years ago
containsAny filters added for int, float, and string arrays.