TypeError: Cannot read property '_status' of undefined

Author: gentleeCreated Nov 26, 2025Updated May 1, 2026

Types of watermelon 0.28.0 show that they support passing array of models:

typescript
await this.database.write(async (writer) => {
  writer.batch(models)
}, description)

But this error is fired: TypeError: Cannot read property '_status' of undefined

This is fixed code:

typescript
await this.database.write(async (writer) => {
  writer.batch(...models)
}, description)

Seems that it was supported in 0.25.5 but no longer supported in 0.28.0.