Open GoogleCodeExporter opened 8 years ago
I think above "What I get is:" is wrong. What I get is is like:
"_id": {
"str": "530c68121d636d09fb000034"
}
instead of "_id": { ObjectId("4fe30f2c03bdeda704000000") }
Original comment by akostadi...@gmail.com
on 25 Feb 2014 at 10:04
The "what I get" was right in my message...
What was wrong was my "I wand to change this field:" sentence.
When I try to individually update a field of type "ObjectId" like this one:
"user_refid": ObjectId("4f0d6c5990268f937be7610f")
I get this:
"user_refid": {
"value": ObjectId("4f0d6c5990268f937be7610f")
}
It works well when updating the whole object, but not when updating a single
field.
NB: you cannot update an "_id" field this way (contextual menu is not
available)...
Original comment by acord...@tftlabs.com
on 25 Feb 2014 at 10:22
then your issue is not same as mine. I see a contextual menu for my filed but
ObjectId() gets mangled. I think your issue has more chances to catch attention
in github where project moved btw.
Original comment by akostadi...@gmail.com
on 25 Feb 2014 at 10:44
Original issue reported on code.google.com by
acord...@tftlabs.com
on 21 Jun 2012 at 2:55