0 votes
in MongoDB by
Which statement is incorrect statement about find and findOne operations in MongoDB?

A - find() returns all the documents in a collection while findOne() retrieves only the first one.

B - find() and findOne() returns cursors to the collection documents

C - findOne() returns the actual first document retrieved from a collection

D - find.limit(1) is not the same query as findOne()

1 Answer

0 votes
by

Ans is 

B - find() and findOne() returns cursors to the collection documents

Related questions

0 votes
asked Jun 17, 2020 in MongoDB by AdilsonLima
0 votes
asked Jun 17, 2020 in MongoDB by AdilsonLima
...