Stored Procedures in MongoDB
FAQs
Does MongoDB have stored procedures?
MongoDB does not need a stored procedure. Instead, you can use aggregation pipelines, change streams, or Atlas functions and triggers to get the same results you would with a simple stored procedure here.
Does MongoDB have serverless functions?
MongoDB Atlas offers functions directly within the platform. Atlas functions are serverless JavaScript functions that contain server-side JavaScript code to define your app's behavior. These user-defined functions can call your app's functions directly from a client app or define services that integrate and call functions automatically, like Atlas triggers and Atlas API services.
What are "temporary procedures" in the context of MongoDB?
Temporary procedures are not a concept in MongoDB. Unlike traditional relational databases that may support temporary procedures for specific tasks, MongoDB does not require or offer temporary procedures as part of its architecture.
How do "input parameters" and "output parameters" relate to MongoDB's approach to data processing?
In MongoDB's context, the concept of "input parameters" and "output parameters" is less relevant compared to traditional relational databases. MongoDB's data processing is primarily driven by its flexible document model and aggregation pipelines. Instead of these different parameters in a stored procedure, MongoDB's aggregation pipelines allow for dynamic manipulation and transformation of data within the database.
Is there a guide to support migrations to MongoDB?
A comprehensive technical guide that details the technical aspects of building aggregation pipelines and simplifies converting existing stored procedures into aggregation pipelines is available.
Get started with Atlas today
Get started in seconds. Our free clusters come with 512 MB of storage so you can play around with sample data and get oriented with our platform.
GET STARTED WITH:
- 125+ regions worldwide
- Sample data sets
- Always-on authentication
- End-to-end encryption
- Command line tools