Import collections
import_collectionsApply a full PocketBase schema in one call by bulk importing collection definitions. Optionally delete missing collections to sync the database exactly.
Instructions
Bulk import collections from an array of collection definitions (as exported from the PocketBase admin UI). When deleteMissing is true, collections not present in the import list are deleted — use with caution. This is the recommended way to apply a full schema in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collections | Yes | Array of collection definition objects. | |
| deleteMissing | No | If true, delete collections not present in the list (default false). |