[SERVER-235] db.fetch() Created: 14/Aug/09  Updated: 10/Dec/14  Resolved: 02/Apr/13

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Phillip Oldham Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

It would be handy, if the .fetch(DBRef) and .fetchAll([DBRef, ...]) methods are implemented, to have them as convenience functions at the "db" level also:

> use test
switched to db test
> var refs = db.testcol.findOne({},

{"linked_docs": 1}

)

{ ... }
> db.fetch(refs[0]){ ... }

> db.fetchAll(refs)

{ ... }

 Comments   
Comment by Eliot Horowitz (Inactive) [ 23/Nov/09 ]

thinking more about this not sure about it.
we added fetchRefs to Array.
if you think this still makes sense, can you put a little more info about why you think it does?

Generated at Thu Feb 08 02:53:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.