Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/selectmode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/successfulupdate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/updatedeletecancel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/updatemodaljson.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/tutorials.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ const moment = require('moment');
const axiosPath = require('./axiosPath');

const tutorials = [
{
title: 'How to update multiple documents with Mongoose Studio',
raw: './tutorials/mongoose/studio-update-multiple.md',
url: '/tutorials/mongoose/studio-update-multiple',
description: 'Here\'s how you can update multiple documents using Mongoose Studio',
tags: ['mongoose'],
date: moment('2025-09-12')
},
{
title: 'Getting Started with Oso Authorization in Node.js',
raw: './tutorials/node/oso.md',
Expand Down
23 changes: 23 additions & 0 deletions tutorials/mongoose/studio-update-multiple.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
To update multiple documents using mongoose studio, you'll want to make use of the select button in the upper right corner in the models page.

![select button](/assets/select.png)


Once you have clicked the select button, you will have entered select mode. In this mode, you can now click the documents displayed that you wish to interact with for the model.
Something worth mentioning is that while in select mode, you can change the view from table to json and vice versa and select mode will still remember the selected documents.

![select mode](/assets/selectmode.png)


Once you are happy with your selection, you have three options, update, delete, or cancel.

![update delete or cancel](/assets/updatedeletecancel.png)

When you click the update button, a modal will appear. In this modal, you write the update object you wish to impose on the selected data. This data should be written in JSON format as shown below.


![update modal](/assets/updatemodaljson.png)

Once you've clicked submit, you will have successfully updated the selected documents.

![successful update](/assets/successfulupdate.png)