Bulk update records

This example shows how to bulk update users

Anonymize users in bulk

As usual, you must declare the action on your collection.

forest/users.js
// forest/users.js
const Liana = require('forest-express-sequelize');

Liana.collection('users', {
  actions: [
    {
      name: 'Anonymize',
      type: 'single',
    },
  ],
});

ou can then implement the post action as you need. Here the records are simply updated in bulk through the sequelize ORM.

Last updated

Was this helpful?