标签: javascript node.js mongodb keystonejs
如何在keystonejs中创建多个键
Photo.add({ eventsId: {type: Types.Relationship, ref: 'Event'}, mediaId: { type: String}, photo: { type: Types.Url }});
我想将eventsId和mediaId设置为主键。怎么做?感谢