我有以下 mongo 文件:
[{
"name": "Robert",
"title": "The art of war",
"description": "The art of war in the 20yh century"
},
{
"name": "Claadius",
"title": "The spring is back",
"description": "I love spring and all the seasons"
}
]
在我的 GET 方法中,我有一个查询来单独搜索 1 个属性,同时搜索 2 个或 3 个属性。参见示例: ?name=Robert&title=war&description=spring
我怎样才能实现这个?