0.0.4 • Published 5 months ago
payload-exportcollections-plugin v0.0.4
payload-exportcollections-plugin
Extends payloadcms
with the ability to export all collection's data to CSV or JSON
Current status
Install
yarn add payload-exportcollections-plugin
Get Started
payload.config.ts
import exportCollectionsPlugin from "payload-exportcollections-plugin/dist/plugins";
export default buildConfig({
....
plugins: [exportCollectionsPlugin(config?)]
....
})
The plugin may expects a config
object defined like this:
export type ExportCollectionsPluginConfig = {
disabledCollections?: string[];
};
where disabledCollections
is a list of collections' slugs that you want to exclude from the plugin's enrichment.