/

MongoDB

&

Firestore

Integrate MongoDB and Firestore

Connect MongoDB and Firestore nodes in your workflow. Integrate with any tool or database and ship powerful backend logic and APIs instantly - No code required!

Node stack

Supported MongoDB and Firestore Nodes

Add any other tools or your preferred database nodes. If an integration is not available generate your own using AI

MongoDB Trigger

Trigger a workflow on data changes in your MongoDB database. Parse the incoming data payload from MongoDB and create a workflow connected to other apps. Check out the [Full Documentation](https://docs.buildship.com/trigger-nodes/mongodb-trigger) on how connect to your MongoDB project.

Delete Document

Deletes a document from a specified collection in MongoDB by document ID and returns the operation response.

Fetch Document

Fetches and returns the entire document data from a MongoDB collection based on the given document ID.

Full Text Search

This performs a full-text search in a specified MongoDB collection, conducts the search, returns matched documents. To enable full-text search (FTS) in MongoDB, follow this [guide](https://docs.buildship.com/tutorials/mongodb-search#full-text-search) on setting up MongoDB Search Index.

Hybrid Search

This performs a hybrid search in a specified MongoDB collection, conducts the search, returns matched documents. To enable semantic search in MongoDB, follow this [guide](https://docs.buildship.com/tutorials/mongodb-search#hybrid-search) on setting up search indexes.

Insert Document

Inserts the given data into a MongoDB collection and returns the ids of the inserted documents.

Query Collection

Queries for multiple documents in a MongoDB collection using connection string, database name, collection name, query, sort, and projection.

Semantic Search

This performs a semantic search in a specified MongoDB collection, conducts the search, returns matched documents. To enable semantic search in MongoDB, follow this [guide](https://docs.buildship.com/tutorials/mongodb-search#semantic-search) on setting up vector search index.

Update Document

Updates a specific document in a MongoDB collection using the updateOne function and returns the operation result.

Add Object to Firestore Array

Adds an object to an existing array in a Firestore document

Collection Query

Get documents of a query in Firestore with multiple filters (with support for document reference).

Create Document

Creates or updates a document in a specified Firestore collection (with document reference field type support).

Delete Firestore Document

Delete a document from a Firestore collection

Firestore Document Count

Get the count of documents in a collection for a given filter

Firestore Field Average

This is blank script node to help you get started. [Full Documentation](https://docs.buildship.com/core-nodes/script).

Firestore Field Sum

Sum of field in collection for given filter

Firestore Query Count

Get server count of a query in Firestore with multiple filters

Get Document Field Value

Fetches a specific field value from a document in a Firestore collection

Get Firestore Document

Fetch a document from Firestore by its collection name and ID

Get User Data With Email

Fetch user data from Firebase Auth based given their email

Update Document

Updates an entire Firestore document with a given object

Update Field Value

Updates a field value in a Firestore document with a given object

Quick start

How to integrate MongoDB and Firestore

Step 1 — Add the nodes to your workflow

Create a new workflow in BuildShip, click “Add node”, and select the MongoDB and Firestore actions you want to use.

Step 2 — Configure each node

Go to each node to authenticate (or add your API key) and fill in the required parameters.

Step 3 — Connect the nodes

Each node in BuildShip can connect to others by using their output variables. When you reference a variable from one node in another, BuildShip automatically links them in the workflow.

Step 4 — Test your workflow

Define your starting data in the Inputs node and choose what to do with the result in the Flow Output node. Finally, run a test to see your workflow in action.

blog posts & tutorials

Recommended Reads

Below are recommneded blogs that will help in your journey