realm-studio icon indicating copy to clipboard operation
realm-studio copied to clipboard

Realm Studio lacks support for Realm.Set<ObjectId>

Open blaykelarue opened this issue 1 year ago • 2 comments

Describe the bug Realm Studio is unable to deal with fields that have { type: "set", objectType: "objectId" }. They are incorrectly labeled as having an 'objectID' type within Realm Studio, but I have verified using realm-js that it is a Realm.Set and I am able to use .add(), .delete(), and can print the set items with .every(). It also crashes Realm Studio if I click on the column header.

To Reproduce Steps to reproduce the behavior:

  1. Create schema with a property that is a set of objectIds.
  2. Open the realm in Realm Studio

Expected behavior I expect to be able to see all the objectIds I have stored within the set. It works with UUID, but not objectId.

Screenshots image image

Versions:

  • OS: Windows 11 Version 10.0.22000 Build 22000
  • Studio Version 12.0.0

Additional context None

blaykelarue avatar Sep 23 '22 17:09 blaykelarue

@blaykelarue Thank you for reporting. I believe you are right. Studio's support for sets is not great, unfortunately. I can't give a timeline for when we will add it to Studio.

If you are a React Native developer, you should try https://github.com/realm/realm-flipper-plugin

kneth avatar Sep 26 '22 14:09 kneth

for sure, thanks for the update nonetheless! i can work around it, unfortunately this is for a nodejs application, but i'll keep that plugin in mind for the future!

blaykelarue avatar Sep 26 '22 16:09 blaykelarue