Skip to content

MongoDB 查找指定字段值的字符串长度大于某个值的文档 #170

@Dream4ever

Description

@Dream4ever

解决过程

Google 关键词:mongodb find documents where string length larger than

第二个搜索结果 Find Strings greater than a particular length in MongoDB? 解决了问题:

db.stringFieldLengthDemo.find({ $where: 'this.UserName.length >11' })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions