Updates not persisting
Hi, I'm new to DB and I'm stuggling to get this simple CRUD setup working.
I can't see why the update is not mutating the record on the collection or calling the onUpdate() callback. The object is valid.
Any ideas? Any help would be much appreciated. Thank you in advance.
2 Replies
fair-rose•2w ago
Hey @Jingle Bells
the
draft needs to be mutated, you cant return a new object. We do this to track exactly what has and has not changed.
sensitive-blueOP•2w ago
@samwillis thanks very much. That works! 🔥