Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realm Studio lacks support for Realm.Set<ObjectId> #1535

Open
blaykelarue opened this issue Sep 23, 2022 · 2 comments
Open

Realm Studio lacks support for Realm.Set<ObjectId> #1535

blaykelarue opened this issue Sep 23, 2022 · 2 comments

Comments

@blaykelarue
Copy link

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

@kneth
Copy link
Member

kneth commented Sep 26, 2022

@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

@blaykelarue
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants