pipedream icon indicating copy to clipboard operation
pipedream copied to clipboard

[ACTIONS] MongoDb - Aggregation, Update Many Documents, Find a Document

Open ctrlaltdylan opened this issue 1 year ago • 2 comments

Is there a specific app this action is for?

MongoDb

Please provide a link to the relevant API docs for the specific service / operation.

Aggregation

A thin wrapper around MongoDb aggregation for compounding several operations

db.collection('example').aggregate(pipeline) https://www.mongodb.com/docs/drivers/node/current/fundamentals/aggregation/

Update Many Documents

db.collection('example').updateMany( filter, operation )

https://www.mongodb.com/docs/drivers/node/current/usage-examples/updateMany/

Find a Document

Find a document

Should be a thin wrapper around the findOne method on MongoDb Node.js:

db.collection('example').findOne(filter, options)

API docs: https://www.mongodb.com/docs/drivers/node/current/usage-examples/findOne/

ctrlaltdylan avatar May 06 '24 19:05 ctrlaltdylan

Hello everyone, I have tested this PR and there're some test cases failed or needed improvement.

Please check the test report below for more information https://vunguyenhung.notion.site/ACTIONS-MongoDb-Aggregation-Update-Many-Documents-Find-a-Document-ea5496dec38a4abfb3a8fc3930bf5431

vunguyenhung avatar May 09 '24 05:05 vunguyenhung

Hi everyone, all test cases are passed! Ready for release!

Test report https://vunguyenhung.notion.site/ACTIONS-MongoDb-Aggregation-Update-Many-Documents-Find-a-Document-ea5496dec38a4abfb3a8fc3930bf5431

vunguyenhung avatar May 10 '24 02:05 vunguyenhung