Skip to content

Document BSON type 6 as 'undefined' #927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

jstell
Copy link
Contributor

@jstell jstell commented Apr 26, 2013

E.g.

db.testcol.insert({v:undefined})
db.testcol.findOne()
{ "_id" : ObjectId("517ae3259c3c002bf65b97fb"), "v" : null }
db.testcol.count({v:null})
0
typeof(db.testcol.findOne().v)
object
db.testcol.count({v:{$type:6}})
1
db.testcol.count({v:{$in:[undefined]}})
1

E.g.
> db.testcol.insert({v:undefined})
> db.testcol.findOne()
{ "_id" : ObjectId("517ae3259c3c002bf65b97fb"), "v" : null }
> db.testcol.count({v:null})
0
> typeof(db.testcol.findOne().v)
object
> db.testcol.count({v:{$type:6}})
1
> db.testcol.count({v:{$in:[undefined]}})
1
@kay-kim kay-kim closed this Jun 20, 2013
@kay-kim
Copy link
Contributor

kay-kim commented Jun 20, 2013

Hi Jason --
thank you so much for your contribution and apologies for the lateness of the response. Your change has been merged.

Thank you once again.

Warmest regards,

Kay

@kay-kim kay-kim reopened this Jun 20, 2013
@kay-kim kay-kim closed this Jun 20, 2013
mongo-cr-bot pushed a commit that referenced this pull request Apr 6, 2022
…nch (#927)

* DOCSP-15476-reapply-secondary-indexes-on-time-series

* DOCSP-15476-reapply-secondary-indexes-on-time-series-metrics-to-6-branch

* DOCSP-15476-reapply-secondary-indexes-on-time-series-metrics-to-6-branch

* DOCSP-18759-PIT-pre-post-images

* DOCSP-15476-reapply-secondary-indexes-on-time-series-metrics-to-6-branch

* DOCSP-15476-reapply-secondary-indexes-on-time-series-metrics-to-6-branch

* DOCSP-15476-reapply-secondary-indexes-on-time-series-metrics-to-6-branch

Co-authored-by: jason-price-mongodb <[email protected]>
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 23, 2025
* DOCSP-46527 -- Add GitHub access requirement note

* DOCSP-46527 -- copy review revision

* DOCSP-46527 -- add troubleshooting note

* DOCSP-46527 -- build preview

* DOCSP-46527 -- review revisions

* DOCSP-46527 -- copy review

* DOCSP-46527 -- more review changes

(cherry picked from commit 2a7a16c)
mongodb-server-docs-sync-bot bot pushed a commit that referenced this pull request Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants