Is there a way to get mongodb query results with only the values and not the field names. My query gives me the following result:
{
"t_number" : 2508
},
{
"t_number" : 2560
},
{
"t_number" : 2599
}
Ideally I want the query result to be [2508,2560,2599]. Or if that is not possible, is it possible to get the query result as [{2508},{2560},{2599}]. I know that I can iterate over the result and change the format in my programming language. I am looking for a way to get that from mongodb and save some work.