Skip to content

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

@1024shao

Description

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

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions