Curent Query:
db.getCollection("users").find({"_id" : ObjectId("606d72765bbe16d6be2f50d1")}, {"interests" :1 , "_id" :0})
Current Output:
{
"interests" : [
"Beaches",
"Mountains",
"Temples",
"Nightlifes",
"Shopping"
]
}
Expected output:
[
"Beaches",
"Mountains",
"Temples",
"Nightlifes",
"Shopping"
]
How to get this expected output? Can anyone help. Thanks in advance.