-
Type: Task
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
<!---
Bugs: To help you as fast as possible with an issue please describe your issue
and the steps you have taken to reproduce it in as much detail as possible.
-->
Goals
I have a schema
export const User = { name: 'Profile', primaryKey: 'id', properties: { id: 'string', citizen: 'string?', imageUrl: 'string?', position: 'string?', firstName: 'Localized?', middleNames: 'Localized?', lastName: 'Localized?', emails: 'string[]', phones: 'string[]', location: 'Location?', dob: 'Dob?', address: 'Address?', identityNumber: 'IdentityNumber?' } };
where emails and phones are arrays of strings;
When getting data from realm emails and phones are casted to an object
Expected Results
"emails": ["adam.smith@example.com"]
Actual Results
"emails":
{"0": "adam.smith@example.com"}Steps to Reproduce
Just copy my collection and add an array of strings
Version of Realm and Tooling
- Realm JS SDK Version: 6.0.2
- Node or React Native: v14 / 0.62.2
- Client OS & Version: iOS 14