*** This version of Confluence is for testing only and contains a copy of content from June 29th 2026. No changes will be preserved. ***
The syntax for running directly on MongoDB shell is different from using Python library (e.g. PyMongo)
In used lambda functions, you would see two queries:
QUERY: This can run directly on MongoDB shell (e.g. Mongo Compass > Connect > Click the button shell)PIPELINE: This is the equivalent (almost, date calculation might differ a bit) query to run with Python library (e.g. PyMongo)
...
Some useful tutorials:
https://docs.aws.amazon.com/lambda/latest/dg/getting-started.html
...