[DOCS-1041] Clarify Cursor Example in Read CRUD page Created: 25/Jan/13  Updated: 16/Jul/13  Resolved: 16/Jul/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Tglx Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 31 weeks, 1 day ago

 Description   

At http://docs.mongodb.org/manual/applications/read/#cursor , before "For more information",
var myCursor = db.bios.find(

{ _id: 1 }

);
I THINK it should be
var myCursor = db.bios.find( { },

{ _id: 1 }

);



 Comments   
Comment by Sam Kleinman (Inactive) [ 16/Jul/13 ]

closing this now: we need better documentation of cursors but this isn't the right ticket to drive that revision, and I've removed any query specification from these examples to make the cursors have more documents which should lead to a more clear example.

Comment by auto [ 16/Jul/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1041: removing query document to clarify example
Branch: master
https://github.com/mongodb/docs/commit/b91afec50ee4c866e3aedf62830309fdda7e2679

Comment by Sam Kleinman (Inactive) [ 25/Jan/13 ]

Scope of work:

  • make the query and the expected results more clear.
  • use better variable names.

I think most of this is structural (more heading, less long nested lists, etc.)

Generated at Thu Feb 08 07:40:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.