Atlas Search
4 results found
-
Allow null value in "in" operator
Allow null value in the "in" operator. This will help reducing code to query if a document has a specific ID or null.
Helpfull when you have documents connected to a organization and/or a project.
So you can filter
{ in: { path: "project", value: [null, ID] }}
Currently you have to filter this with a combination of filter, compound, should and equals with a minimumShouldMatch: 1.
{ compound: { should: [ { equals: { path: 'project', value: null, }, }, { equals: { path: 'project', value: req.project._id, }, }, ], minimumShouldMatch: 1, }, }
1 vote -
1 vote
-
Implement basic aritmetic operations for the Decimal128 datatype
Feature Request:
Implement basic aritmetic operations (e.g. addition) for the Decimal128 datatype.Context:
I am working with high precision floats in Python and I am storing my data in MongoDB. When I get a high precision float out of MongoDb, I then need to convert it to the native Python decimal datatype before I can do basic arithmetic like addition. It would be great if your Decimal128 datatype supported the same mathematical operations as Python's decmial datatype. I documented this issue and provided sample code to work around the limitations here:https://github.com/NadimGhaznavi/kb/wiki/Handling-Floating-Point-Math-with-Python-and-MongoDb
Love your product, keep up the awesome work!!!…
1 vote -
3 votes
- Don't see your idea?