Ultimate

X_WRITE_UNFILTERED

Means

deleteWhere() or updateWhere() named no filter columns

Typical cause

an empty filter, or one whose only value came back undefined — the two look identical at the call site, and either would reach every row

Fix

name the columns that bound it, e.g. db.likes.deleteWhere({ postId, userId }). A deliberate whole-table write is a migration: x db gen "<name>"

Listed under Entity and database

This page as markdown