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

Mixed: Get underlying type of a mixed property #3646

Closed
sync-by-unito bot opened this issue Mar 15, 2021 · 0 comments · Fixed by #3938
Closed

Mixed: Get underlying type of a mixed property #3646

sync-by-unito bot opened this issue Mar 15, 2021 · 0 comments · Fixed by #3938
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Mar 15, 2021

Since all numeric types (int, long, double) are represented as a number when read from our SDK, it makes sense to implement a method to get the underlying type of the property value, if your application (such as MongoDB Realm Studio) care about this.

The API could be an instance method on Realm.Object:

realmObject.getType(propertyName);

getType() implies it works for any property (and not just Mixed properties).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant