Plugins
Minimal example
Using plugins
import { createAgent } from '@forestadmin/agent';
import { createFileField } from '@forestadmin/plugin-s3';
import { removeTimestamps } from './plugins/remove-timestamps';
// The .use() method can be called both on the agent and on collections.
createAgent()
// Some plugins do not require options
.use(removeTimestamps)
// Others do
.customizeCollection('accounts', collection =>
collection.use(createFileField, { fieldname: 'avatar' }),
);Writing plugins
Last updated