change status for the collection companies. I want users to be able to only select the new status from a list of possible options.
forest/companies.js
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
change status for the collection companies. I want users to be able to only select the new status from a list of possible options.
forest/companies.js
const { collection } = require('forest-express-sequelize');
collection('companies', {
actions: [
{
name: 'Change status',
type: 'single',
fields: [
{
field: 'New status',
type: 'Enum',
isRequired: true,
enums: ['Pending', 'Live'],
},
],
},
],
fields: [],
segments: [],
});
Was this page helpful?