0
我想轻松查询这样的结果:境界-JS架构与嵌套对象
通过这样的查询[{
name: 'john_doe',
info: {
age: 24,
notes: 'custom text',
phoneNumbers: {
home: 112345678,
work: 1234567,
},
},
}, {...}, {...}...]
...:
contacts.filtered("info.age = 24 AND info.notes CONTAINS 'custom'");
我应该如何建立这样的模式?文档是有关数据类型和嵌套的属性非常混乱:
- https://realm.io/docs/react-native/0.14.0/api/Realm.html#~PropertyType
- https://realm.io/docs/react-native/latest/#nested-objects
我并不需要单独检索该数据的任何部分 - 与所有嵌套对象一次只完成目标。