deleteById method
Deletes within the key and filters and returns the affected row count.
Implementation
Future<int> deleteById(Object id) async {
_rejectPaging();
final scoped = whereFields({_primary.field: eq<Object?>(id)});
final bindings = _bindings();
final result = await session.run(
'DELETE FROM $_onlyTable${scoped._where(bindings)}',
parameters: bindings.values,
);
return result.affectedRows;
}