MongoDB Stitch¶
What is Stitch?¶
MongoDB Stitch is a serverless platform that enables developers to quickly build applications without having to set up server infrastructure. Stitch is built on top of MongoDB Atlas, automatically integrating the connection to your database. You can connect to Stitch through the Stitch Client SDKs, which are available for many of the platforms that you develop for including JavaScript, iOS, and Android.
Create a Stitch AppWhat Can I Do With Stitch?¶
Securely Store and Query Data in MongoDB¶
Stitch lets you read and write the data you’ve stored in MongoDB Atlas from a serverless function or directly in your client application code. A secure, role-based rules engine ensures that your users can only read and change the data that you want them to. | ![]() |
Get Started To query MongoDB, you’ll need to link a MongoDB Atlas cluster to your Stitch application and then define roles and permissions for one or more collections in the cluster. |
Use Cases
|
Authenticate and Manage Application Users¶
Stitch simplifies the process of authenticating and managing your application’s users. The built-in authentication providers allow users to log in with an email/password, an API Key, or an external OAuth service. If the built-in providers don’t cover your use case, you can integrate your own custom provider. | ![]() |
Get Started To authenticate your application’s users, you’ll need to configure one or more authentication providers. |
Use Cases
|
Define Backend Logic with Serverless Functions¶
Stitch lets you write and execute JavaScript functions that connect all of the data and services that power your application. You can call functions from client applications or from other functions, all without setting up an HTTP API. | ![]() |
Get Started To execute your application’s backend logic, you’ll need to define a function and then call it from a Client SDK or another function. |
Use Cases
|
Respond to Changes and Events¶
Stitch can automatically execute trigger functions in response to user authentication events or changes in your MongoDB database. You can also create incoming webhooks to allow external services to interact with your application remotely. | ![]() |
Get Started To automatically respond to events, you’ll need to create a trigger or configure an incoming webhook. |
Use Cases
|