Open venkatd opened 1 year ago
Hm it looks like merge/1
and replace/1
does the same thing.
If you are upserting a record, all required fields must be given. The intention in this use case reads better using the upsert/1
signature, as I mention here https://github.com/TurtleAI/derive/issues/19#issuecomment-1366821630
If you are simply updating fields in an existing record, then update/2
is the more intuitive option. Afaik update/2
doesn’t have the bug in question.
The following code:
Fails in my codebase because it's not passing along the
created_at
field. It's trying to set thecreated_at
to null but that probably means there's a bug in which missing fields in the struct are mistakenly set.I need to write a test case to reproduce this behavior