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

Can odmantic support mongo projection? #234

Open
xmstu opened this issue Aug 5, 2022 · 1 comment
Open

Can odmantic support mongo projection? #234

xmstu opened this issue Aug 5, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@xmstu
Copy link

xmstu commented Aug 5, 2022

Feature request

Context

  1. mongo raw query can do: db.test.findOne({}, {'name': 1}), and i don't find any example that odmantic can do the same feature
  2. Can odmantic do: engine.find(Model, Model.name == 'xx', {'name': 1}) ?
@xmstu xmstu added the enhancement New feature or request label Aug 5, 2022
@linpan
Copy link

linpan commented Sep 6, 2022

or find method can return ids

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

No branches or pull requests

2 participants