我在mongoDB 中的数据模式
{
id:type(string),
itemId:type(int),
itemName:type(string)
}
我想查询itemId,这样如果(在我的数据库中,itemId是(1,2,12,13,1527((
如果我搜索itemId 1,那么它从itemId(1,12,13,15(的1平均提取数据开始提取数据
如果我没有通过itemId,那么获取整个数据。
请帮我
提前感谢
为了解决这个问题,我将所有itemId存储在字符串中,并构建类似的查询。
感谢的支持