[DOCS-7044] Document type bracketing Created: 26/Jan/16  Updated: 30/Oct/23  Resolved: 01/Apr/16

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

Type: Task Priority: Major - P3
Reporter: David Storch Assignee: Steve Renaker (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-7716 Range query operators ($gt, $lt, etc)... Closed
related to SERVER-22308 query in collection which has differe... Closed
Participants:
Days since reply: 7 years, 45 weeks, 5 days ago

 Description   

A query like {_id: {$gt: 2}} doesn't mean to find all documents with an _id field that compares greater than the number 2. Instead, it means to field documents where the _id field is a number that compares greater than 2. This implicit restriction of comparison predicates to a particular canonical type is called "type bracketing". If we don't have explicit documentation for this behavior already, then we should add some.

See SERVER-22308 for an example of how this could cause confusion.



 Comments   
Comment by Githook User [ 01/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7044: changed wording for type bracketing explanation

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/45d7990f8cc16a4199f0dd2f48f5b03293d74abe

Comment by Githook User [ 01/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7044: removed extraneous tab, added period, attempted to disambiguate data type comparisons

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/6ff5c77b7ecd27b4506007b864097e9df70c1140

Comment by Githook User [ 01/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7044: more edits to db.collection.find.txt

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/ad6ee8f5367ece160ff6035bb3f906afd8861806

Comment by Githook User [ 01/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7044 fixed indentation

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/6ec3f2a612227654776f4b98bc8c0a954dc4dc69

Comment by Githook User [ 01/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7044: changes of wording and formatting for Type Bracketing description

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/afaadb4bd0c0e22477a6e3253222606a3a8b8ff9

Comment by Githook User [ 01/Apr/16 ]

Author:

{u'username': u'steveren', u'name': u'Steve Renaker', u'email': u'steve.renaker@mongodb.com'}

Message: DOCS-7044 additional info about type bracketing

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/96c1996c6b1405e70c4da014ab23c2c366939758

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