2017-12-13 14 views

답변

0

당신은 여기이

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을 가져와야합니다