Database

[{_id:ObjectId("652edd74bdb84c9944d280d6"),customer_id:1001,first_name:"Test",last_name:"User",username:"Tuser",password:"Testuser",registration_date:new Date("2023-10-17T13:54:54.000Z")},{username:"other"}]

Query

db.collection.aggregate([{$match:{username:"Tuser"}},{$project:{"_id":0,"customer_id":1,"first_name":1,"last_name":1,"username":1,"password":0,"registration_date":0}}])

Result