This is the code.

console.log("Request Body Before Insert:", requestBody);
console.log("Generated Data:", data);
console.log("Previously Existing Documents:", await db.collection("ewan").find().toArray()); const result = await db.collection("ewan").insertOne(data);
console.log("Current Existing Documents:", await db.collection("ewan").find().toArray());

Thankyou in advance sir.