Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ordering Mongoskin driver while retrieving a document with json map #168

Open
pawanpec opened this issue May 29, 2015 · 1 comment
Open

Comments

@pawanpec
Copy link

We are using mongoskin nodejs driver while fetching data from mongoDB.

We have following document in Mongodb

{
"_id" : ObjectId("5567f1029932083a6740b170"),
"m" : {
"53748394" : "Senior Support Delivery Manager",
"53614006" : "Program Manager /Delivery Manager",
"53816189" : "Technical Delivery Manager",
"53745663" : "Technical Delivery Manager",
"53815627" : "Service Delivery Manager",
"53628890" : "Client Delivery Manager - IT Infrastructure",
"53837768" : "PHP Delivery Manager"
},
"s" : " Delivery Manager/ Head jobs in Barclays Finance & more ",
"ui" : "pawanpec37592"
}

When we retrieve it ,

We get

"m": {
"53614006": "Program Manager /Delivery Manager",
"53628890": "Client Delivery Manager - IT Infrastructure",
"53745663": "Technical Delivery Manager",
"53748394": "Senior Support Delivery Manager",
"53815627": "Service Delivery Manager",
"53816189": "Technical Delivery Manager",
"53837768": "PHP Delivery Manager"
},

which is sorted by key .

We are using collection.findOne({
"_id" : _id
}
Please suggest

@vkarpov15 vkarpov15 added this to the 1.4.14 milestone Jun 1, 2015
@vkarpov15
Copy link
Contributor

which version of mongodb driver are you using? Haven't been able to reproduce with mongodb 1.4.38.

@vkarpov15 vkarpov15 removed this from the 1.4.14 milestone Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants