defineModel at a connector’s dataset, extractSlug chooses which action fetches the rows and config parameterizes it.
The shape
models/contacts.ts
| Field | Purpose |
|---|---|
dataset | The connector handle whose dataset this model reads from. |
extractSlug | The connector action that returns rows (e.g. fetchRecords). |
config | Parameters for that action — the object type, filters, column selection, etc. |
schedule | How often to re-extract (cron, or omit for manual refresh). |
Discovering slugs and config
The validextractSlug values and their config shape are per-integration. Discover them by generating types or querying the integration:
Refreshing
A model re-extracts on itsschedule, or on demand:
Integration-backed models are read-only mirrors — the source system stays the
source of truth. To write back, use the integration’s write actions in a
workflow, or use an
object model for data Cargo owns.

