0 votes
in MongoDB by

Which commands finds all the documents in the posts collection with post timestamp field as null?

A - db.posts.find( { post_timestamp : { $type: 10 } } )

B - db.posts.find( { post_timestamp: { $type: null } } )

C - db.posts.find( { post_timestamp: { $fieldtype: 10 } } )

D - db.posts.find( { post_timestamp: { $fieldtype: null } } )

1 Answer

0 votes
by

Ans is A - db.posts.find( { post_timestamp : { $type: 10 } } )

...