Hi, I’m struggling to understand how to properly insert a document reference into a List using splice, haven’t found any clear examples in the documentation.
I’m able to achieve this when the document being inserted doesn’t exist yet (and needs to be created at this step), but when I try to add an existing document’s reference to the List, it fails.
It seems the code above fails silently and can’t make the swap. I noticed that the second splice does not return anything, so is there a bug in Realm or what is the efficient and correct way to do this kind of swap position?