Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

子查询报错 $in needs an array #97

Open
1024shao opened this issue Sep 11, 2022 · 0 comments
Open

子查询报错 $in needs an array #97

1024shao opened this issue Sep 11, 2022 · 0 comments

Comments

@1024shao
Copy link

const query = Bmob.Query('Friends')
query.statTo("where", `{"objectId":
{"$inQuery":{"where":{"from_id":"${this.userId}"},"className":"_User"}}}`);

image

看了很多网上很多报这个错误的都是因为 mongoDB 在 2.6 版本之后更新了查询的方式,想请问一下,目前 Bmob 是否支持,文档上的方式无法进行子查询操作。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant