make dbref type use DBPointer and add new DBRef for js (WAS: DBRef in console doesn't work in .find() context.)

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.1.2
    • Affects Version/s: 0.9.8, 0.9.9
    • Component/s: None
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > use test
      switched to db test
      > db.main.find()
      {"_id" : "b45c046c-c502-11dd-b0b6-001d7dc91168" , "_ref" : {"$ref" : "test" , "$id" : "b44ab2b6-c502-11dd-b0b6-001d7dc91168"}}
      > db.test.find()

      {"_id" : "b44ab2b6-c502-11dd-b0b6-001d7dc91168"}

      > db.main.find(

      {"_ref": DBRef('test', 'b44ab2b6-c502-11dd-b0b6-001d7dc91168')}

      )
      Wed Aug 19 10:01:05 JS Error: Error: 2nd arg to DBRef needs to be oid (shell):0

              Assignee:
              Eliot Horowitz (Inactive)
              Reporter:
              Phillip Oldham
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: