moleculerjs / moleculer-db

:battery: Database access service mixins for Moleculer
https://moleculer.services/
MIT License
152 stars 122 forks source link

How to use lean query in moleculer-db-adapter-mongoose? #244

Open Pitbi opened 3 years ago

Pitbi commented 3 years ago

Hello,

It is possible to do lean query with moleculer-db-adapter-mongoose? https://mongoosejs.com/docs/api.html#query_Query-lean

Does find method have an interest in not using lean ? find(filters) { return this.createCursor(filters).exec(); }

Thx.

0x0a0d commented 3 years ago

use this.adapter.model to directly access mongoose model