Explanation:A database holds a set of collections. A collection holds a set of documents. 3. Which of the following method returns true if the cursor has documents ?
A. hasMethod()
B. hasNext()
C. hasDoc()
D. All of the mentioned
Answer:A
Explanation:A database holds a set of collections. A collection holds a set of documents. 3. Which of the following method returns true if the cursor has documents ?
A. hasMethod() B. hasNext() C. hasDoc() D. All of the mentioned
Explanation:hasNext() returns true if the cursor returned by the db.collection.find() query can iterate further to return more documents. 4. ____________ method renders the document in a JSON-like format.