MongoDB
Find, insert, update, and delete documents in MongoDB collections. In Appbricx, your workflows and server functions call it by name once it is connected.
What you can do
7 actions, each one call from a workflow or a server function. Triggers come from your app: a row changing, a schedule or a webhook.
- Find DocumentsFind documents in a collection
find_documents - Update DocumentsUpdate multiple documents in a collection
update_documents - Aggregate DocumentsPerform aggregation operations on documents in a collection
aggregate_documents - Delete DocumentsDelete documents from a collection
delete_documents - Find and Replace DocumentsReplace documents that match a filter with a new document
find_and_replace_documents - Find and Update DocumentsFind documents and update them, returning the updated documents
find_and_update_documents - Insert DocumentsInsert one or more documents into a collection
insert_documents
Set it up
About two minutes, once per project or once for the whole workspace.
- Open Integrations in the builder
Backend panel, Integrations tab, then MongoDB. To connect it for every project, use Workspace settings, Integrations.
- Add your credentials
An API key (or token) from your MongoDB account, pasted once. It is stored encrypted and only read on the server when an action runs.
- API key From MongoDB's settings
- Call an action
From a workflow, by integration id and action name. The call answers with success, output and, when it fails, the reason.
Workflow // .workflow.js (native ctx) export async function run(ctx) { const res = await ctx.integrations.invoke("mongodb", "find_documents", { "collection": "<collection>" }); if (!res.success) throw new Error(res.error); ctx.log.info("MongoDB answered", { output: res.output }); }
More in Data and storage
MongoDB and its logo are trademarks of their owner, shown only to identify the service this integration connects to. Their use does not imply endorsement by, or affiliation with, that company.