Upsert support
gandaldf opened this issue · comments
Diego Parisi commented
Hi! I'd like to know if REL supports some kind of "Upsert" function to update an existing record or insert it if it doesn't exists.
Surya Asriadie commented
it's supported since very recently (not documented yet): #269
can you try: repo.Insert(ctx, &record, rel.OnConflictReplace())
?
Diego Parisi commented
Ok, I'll try!
Thank you!