1
에서 RealmList를 작성하는?어떻게 다른 영역의 객체 ItemEntry의 RealmList있다 된 OrderEntry에 대한 스키마가 노드 영역 스키마
참고 : 두 스키마는 별도의 파일에 있습니다.
에서 RealmList를 작성하는?어떻게 다른 영역의 객체 ItemEntry의 RealmList있다 된 OrderEntry에 대한 스키마가 노드 영역 스키마
참고 : 두 스키마는 별도의 파일에 있습니다.
당신은 여기이
items: {type: 'list', objectType: 'ItemEntry'}
같은 ItemEntry의 목록을 지정할 수 있습니다 당신의 스키마와 예입니다. 당신은 별도의 파일에 넣어하려는 경우
const OrderEntrySchema = {
name: 'OrderEntry',
primaryKey: 'id',
properties: {
id: 'string',
items: {type: 'list', objectType: 'ItemEntry'}
}
};
const ItemEntrySchema = {
name: 'ItemEntry',
primaryKey: 'id',
properties: {
id: 'string'
}
};
, 당신은 된 OrderEntry
와 파일에 ItemEntry을 가져와야합니다