11

当我尝试插入这样的文档时,我使用的是最新版本的 Meteor (0.5.9):

Contacts.insert({ 
     _id : 'gBTqByxvoz9PdFxmy',
     name : 'Albert Einstein',
     infoDocument: {
        '$ref': 'documents',
        '$id': 'zigeoa8RgAukxwYoi',
        '$db': 'meteor'
     },
     owner : 'public',
     slug : 'gBTqByxvoz9PdFxmy',
     type : 'contact' 
}

我在服务器控制台中收到错误“[Error: key $ref must not start with '$']”。Meteor 是否支持 DBRefs?

4

0 回答 0