Fix CRUDAlgebra
zakpatterson opened this issue · comments
Zak Patterson commented
CRUDAlgebra includes two update methods, safeUpdate
and update
. safeUpdate
is meant to handle updates where an ID is known, and update
is meant to update the fields based on whatever fields are in the update method.
Every UAlgebra implementer can update based on ID, but not all can update without an id, as not all data models will contain unique fields. Thus we should treat update
without an id as a special case that should be added by extension by users of UAlgebra
.