Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
Windows 10 x64, Chrome Version 59.0.3071.115 (Official Build) (64-bit)
*Location*: https://docs.mongodb.com/manual/reference/sql-comparison/
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 1920 x 1200
Windows 10 x64, Chrome Version 59.0.3071.115 (Official Build) (64-bit) *Location*: https://docs.mongodb.com/manual/reference/sql-comparison/ *User-Agent*: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 *Referrer*: https://www.google.com/ *Screen Resolution*: 1920 x 1200
Description
Page Error: Typo
Section: Comparing SQL Statements to MongoDB find() Statements
Issue: The MongoDB find() examples for "SELECT id, user_id, status" and "SELECT user_id, status" are swapped in the table.
From the Page:
SELECT id,
user_id,
status
FROM people
Compares to:
db.people.find({ },{ user_id: 1, status: 1 })
Where it should compare to:
db.people.find({ },{ user_id: 1, status: 1, _id: 0 })
Likewise:
SELECT user_id, status
FROM people
Is compared to:
db.people.find({ },{ user_id: 1, status: 1, _id: 0 })
and should be compared to:
db.people.find({ },{ user_id: 1, status: 1 })