Remove one and add first. The previous behavior can roughly be emulated with
const row = query.first();
if (!row) throw new Error("Missing row");
(This drops the check for returning no more than one row, but that check does not matter in most cases, and when it matters should probably be tested for explicitly)
Remove
one
and addfirst
. The previous behavior can roughly be emulated with(This drops the check for returning no more than one row, but that check does not matter in most cases, and when it matters should probably be tested for explicitly)