-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
1 - XS (<= 1 day)
-
4637
Problem
Realm.Set extends Realm.Collection but doesn't implement the length property. It's true that you can access the size of a Set with size, but still this breaks the polymorphism contract with the parent class.
Also, documentation is lacking in the reference: https://www.mongodb.com/docs/realm-sdks/js/latest/Realm.Set.html#length.
Solution
Option 1: Implement length just by delegating to size.
Option 2: Extend the documentation.
How important is this improvement for you?
I'd like to see it, but have a workaround
- depends on
-
RJS-1751 Clean up Collection APIs
- Closed