π Some new syntaxes!
The previous patch versions (2.0.1, 2.0.2 & 2.0.3) proved to be stable and without bugs, so here is a minor version (2.1.0)! This new version also brings some new features:
β¨ Features
- Update Mongo driver from version 4.2.2 to 4.3.0-beta1 (24d55b6)
- Remove severe logging when a field does not exist in a document (dce8007)
- Add an
is empty
document condition (cb6333c) - Add an
has value
document condition (b8fc290) - Add an
has key
document condition (9424283) - Add Mongo sections! (8908f7c)
As you know, the creation of simple documents can sometimes be long and boring, because of the many lines that sometimes seem unnecessary.
To create a simple document representing the JSON object below, you can now use a new syntax! β¬οΈ
{
"simpleField": "Hello!",
"nestedObject": {
"number": 100,
"boolean": false
}
}
set {_nested} to a new mongo document with:
mongo "number": 100
mongo "boolean": false
set {_doc} to a new mongo document with:
mongo "simpleField": "Hello!"
mongo "nestedObject": {_nested}
broadcast {_doc}'s mongo json
These new syntaxes are all prefixed with mongo
to ensure they do not conflict with other addons.
As a reminder, they are currently in beta, and their patterns may be changed if there are problems. π
That's it for today, enjoy!