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

Support BSON types when debugging using the chrome debugger #3454

Closed
kraenhansen opened this issue Dec 9, 2020 · 0 comments
Closed

Support BSON types when debugging using the chrome debugger #3454

kraenhansen opened this issue Dec 9, 2020 · 0 comments
Assignees
Labels

Comments

@kraenhansen
Copy link
Member

kraenhansen commented Dec 9, 2020

In the current state, creating an object with a property (_id in the error message below) of type BSON ObjectId will fail when the app is running in Chrome debugging mode, with the following error message:

ClassName._id must be of type 'objectId', got 'object' ([object Object])

The current implementation is depending on a _bson, _Decimal128 and _ObjectId constants being patched onto the Realm constructor in a couple of places:

When reading a property of type ObjectId, users will also experience:

Error: _ObjectId must be of type 'constructor', got (undefined)

This constant is never set when running in chrome debugging mode.

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

No branches or pull requests

1 participant