Câu 8: C100DEV: MongoDB Associate Developer
Given the following documents in the employees collection:{ _id: 0, name: “Y.B.”, department: “Sales” },{ _id: 1, name: “E.H.”, department: “Engineering” },{ _id: 2, name: “C.Y.”, department: “Support” },What mongosh command will find a document with name “E.H.”?
Nội dung câu hỏi
Given the following documents in the employees collection:{ _id: 0, name: “Y.B.”, department: “Sales” },{ _id: 1, name: “E.H.”, department: “Engineering” },{ _id: 2, name: “C.Y.”, department: “Support” },What mongosh command will find a document with name “E.H.”?
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.employees.query_one( {name: “E.H.”} )
- B. db.employees.find_one( {name: “E.H.”} )
- C. db.employees.queryOne( {name: “E.H.”} )
- D. db.employees.findOne( {name: “E.H.”} ) — đáp án hiện tại
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.