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

Export the BSON types available for `Realm.Object` properties on `Realm.Types`

Open kraenhansen opened this issue 2 years ago • 1 comments

We're currently re-exporting all of the bson package API on Realm.BSON. To simplify our exports and make it easier for users to find the types that are actually available for properties, I suggest we export only the types we currently support: ObjectId, Decimal128 and UUID.

kraenhansen avatar Sep 19 '22 17:09 kraenhansen

We should wait for TypeScript-first models to land before fixing this, as it introduce a Realm.Types namespace where the BSON types will be available.

kraenhansen avatar Sep 26 '22 09:09 kraenhansen