You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs for Table.delete(), under Return Value:
Promise that resolves successfully with an undefined result, no matter if a record was deleted or not. Rejection happens if the provided key is not a valid key (not a Number, String, Date or Array<Number | String | Date>) or if the current transaction is readonly or inactive.
It would be great to have some kind of feedback from the database when the record deletion was successful or not. Even if it's just the delete count, or a boolean.
And yes, Collection.delete() does have feedback, but that still requires one more query/step that is not needed when I already know exactly which record I need to delete.
While gathering data for this idea, I also ran into Table.bulkDelete(). Not sure this one is a politician (returning empty promises), but in this case it would also be nice to know if all records were deleted and if not, which one did and which one not.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
According to the docs for Table.delete(), under Return Value:
It would be great to have some kind of feedback from the database when the record deletion was successful or not. Even if it's just the delete count, or a boolean.
And yes, Collection.delete() does have feedback, but that still requires one more query/step that is not needed when I already know exactly which record I need to delete.
While gathering data for this idea, I also ran into Table.bulkDelete(). Not sure this one is a politician (returning empty promises), but in this case it would also be nice to know if all records were deleted and if not, which one did and which one not.
Beta Was this translation helpful? Give feedback.
All reactions