MongoDB $oid vs ObjectId

前端 未结 1 1862
后悔当初
后悔当初 2020-12-31 11:07

I\'m trying to get mongodb query working. Collection comes in the format:

{
\"_id\": {
    \"$oid\": \"54651022bffebc03098b4567\"
},
\"browser\": \"ie\",
\"b         


        
相关标签:
1条回答
  • 2020-12-31 11:52

    The MongoLab UI uses Strict MongoDB Extended JSON so Object IDs are represented thusly, as in the second code block of the OP:

    { "$oid": "<id>" }
    
    0 讨论(0)
提交回复
热议问题