【发布时间】:2019-08-08 01:27:06
【问题描述】:
我正在使用 AnypointStudio 创建 API,我正在尝试使用 MongoDB 上的 ObjectId 搜索文档,但无法使其正常工作。我尝试使用集合中的其他字段进行搜索,并且效果很好。这是我当前使用的Find query 的值。
output application/json
---
{
"_id" : "5c088f4264c73358f4f7e3c0"
}
这是我使用 uid 字段搜索时的示例结果。
{
"_id": {
"$oid": "5c088f4264c73357f4f7e3c0"
},
"uid": "test",
"name": "test",
"validUser": true,
"oauth_client_id": "55628a5730ad44719e63b34c36604401",
"customer": "test customer"
}
谁能帮我用ObjectId搜索文档?谢谢
【问题讨论】:
标签: mongodb mule anypoint-studio