Câu 14: C100DEV: MongoDB Associate Developer
A collection named products contains 100 documents. What method should be used to get all results from a cursor using mongosh?
Nội dung câu hỏi
A collection named products contains 100 documents. What method should be used to get all results from a cursor using mongosh?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. db.products.findAll();
- B. db.products.forEach().toArray();
- C. db.products.find().toArray(); — đáp án hiện tại
- D. db.products.find()[];
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.