Eventing enhancements
Earlier, Space Cloud was capable of triggering a webhook for database events only when the document consisted of id/_id
field for SQL/Mongo. However, now Space Cloud's eventing module works for any database mutations that contains the fields uniquely identifying the document in the request.
Note: However, this causes a breaking in the
realtime
module (liveQuery
). Instead of sending thedocId
, Space Cloud now sends thefind
object which contains the field that uniquely identifies the document. i.e. the fields with either the@primary
or@unique
directive. Read more about theliveQuery
syntax.
Distinct support
The support of fetching distinct/unique values is added to Space Cloud in this version. Learn more about how you can use the distinct clause. Fixes #546
Version display in Mission Control
The mission control now displays the version number of Space Cloud that it is running with. This is helpful while debugging.
Bug fixes in Space Cloud
- Insert array in MongoDB. Fixes #607
- Sort not working. Fixes #622
- GraphQL mutation doesn't return the value of default fields. Fixes #617
- Upsert operation not working in MongoDB. Fixes #619