Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

求助findOne 不返回 _id #15

Open
xiu1994 opened this issue Nov 1, 2021 · 0 comments
Open

求助findOne 不返回 _id #15

xiu1994 opened this issue Nov 1, 2021 · 0 comments

Comments

@xiu1994
Copy link

xiu1994 commented Nov 1, 2021

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

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

No branches or pull requests

1 participant