I currently have a Realm with all user data utilizing the user=id style of partition.
I want to create a new Realm with all of the user data that was in the old partition with a new user.
Is there a straightforward way to query for all of the objects with a given partition string and then copy them into a new partition, obviously replacing the _partition with the new user=new_id and the _id with a new uuid?
I’m currently trying to figure out how to do this with the .aggregation method on each collection. No idea if this is a good method, but without any input, just trying things. Would appreciate any input from the Realm team.