Options

uuid

Use a custom uuid method. Depot is using uuid-random by default.

import { v4 as uuid } from "uuid"
const books = depot({ uuid })

id

The property name to be used as primary key.

const books = depot({ id: "__id__" })

Last updated

Was this helpful?