Write Query: Find a Record
The task involves querying a MongoDB collection to find orders with a status of "Pending." Given a sample orders collection, the query should return documents that match this status, including details such as the unique order ID, customer ID, items purchased, total price, and order date. The expected output showcases multiple pending orders, highlighting the need for support to quickly identify these transactions due to reported payment failures.
We'll cover the following...
We'll cover the following...
Question
Given the following sample documents from the orders collection:
[
{
"_id": "3a758b14e7e292cf190b1ac5",
"customerId": "ee3c04494293e51a48af88d1",
"items": [
"External Hard Drive",
"USB Hub"
],
"total": 1922,
......