11

I am on latest version of Meteor (0.5.9), when I try to insert a document like such:

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

I get an error in the server console "[Error: key $ref must not start with '$']". Are DBRefs supported in Meteor yet?

ilmatic
  • 565
  • 3
  • 11

0 Answers0