Delete builds DELETE queries.
import Delete from '@stackpress/inquire/Delete';Most code uses it through engine.delete(table).
await engine.delete('sessions')
.where('expires_at < ?', [new Date()]);Add a WHERE clause.
Add a JSON comparison filter.
Add a JSON containment filter.
Return the internal delete state.
Return one QueryObject.
Execute the query through the attached engine.
Delete also exposes writable configuration properties:
| Property | Default |
|---|---|
selector |
: |
separator |
. |
These affect JSON selector parsing.
When awaited, Delete<R> resolves to R[].