Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-243

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

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.2
    • Affects Version/s: 0.9.8, 0.9.9
    • Component/s: 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 Eliot Horowitz (Inactive)
            Reporter:
            digitala Phillip Oldham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: