MongoDB Snap Pack examples

Example Snaps used
MongoDB - Delete

Delete documents from a MongoDB collection

This example pipeline demonstrates how to delete existing documents from a MongoDB collection, insert new documents, and then delete documents based on a query condition.

MongoDB - Insert

Insert documents into a MongoDB collection

This example pipeline demonstrates how to insert documents into a MongoDB collection using the JSON Generator and Mapper Snaps to prepare and map the input data.

MongoDB - Update

Update records using array filters

This example pipeline demonstrates how to use the Array filters field to update records with filter conditions on array elements within MongoDB documents.

Update collection in MongoDB

This example pipeline demonstrates how to update a MongoDB collection with data from an upstream Snap using update query conditions.

MongoDB - Execute

Use common commands in MongoDB

This example pipeline demonstrates how to use common MongoDB commands (Create, Insert, and Find) to create a collection, insert employee data, and retrieve the records.

MongoDB - Atlas Vector Search

Vector search on a specific field

This example pipeline demonstrates how to use MongoDB - Atlas Vector Search Snap to perform an ANN (approximate nearest neighbor) search on a vector in the specified field.