Skip to content

求助findOne 不返回 _id #15

@xiu1994

Description

@xiu1994

求助,findOne 怎么返回指定字段,不返回_id
$col->findOne(['account' => '小米'],['account'=>1,'_id'=>0]); 这样写没有起效果。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions