You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import service from 'feathers-mongoose';
...
app.use('serviceName', service({Model: MyModel}));
...
I have noticed that, when I console.log(context.result); in an after hook (create) that the resulting object is not lean, i.e. it contains mongoDB stuff like __id and __v.
I tried to set the lean option explicitly:
Module versions (especially the part that's not working):
feathers-mongoose: 8.0.1
feathersjs: 4.3.0-pre.2
NodeJS version:
node:10-stretch
Operating System:
MacOS 10.14.6 running Docker Engine 19.03.1 and Compose 1.12.1
The application is running inside a docker container (node:10-stretch)
The text was updated successfully, but these errors were encountered:
Steps to reproduce
I am creating a feathers-service:
I have noticed that, when I
console.log(context.result);
in an after hook (create) that the resulting object is notlean
, i.e. it contains mongoDB stuff like __id and __v.I tried to set the
lean
option explicitly:but then Typescript complains. The Problem is the following line (l.34 in
types/index.d.ts
) :where
MongooseServiceOptions
extendsServiceOptions
which in turn is imported from@feathersjs/adapter-commons
.In
adapter-commons/src/service.ts
the said interface is exported, but the lean attribute is missing:System configuration
I am using Typescript.
Module versions (especially the part that's not working):
feathers-mongoose: 8.0.1
feathersjs: 4.3.0-pre.2
NodeJS version:
node:10-stretch
Operating System:
MacOS 10.14.6 running Docker Engine 19.03.1 and Compose 1.12.1
The application is running inside a docker container (node:10-stretch)
The text was updated successfully, but these errors were encountered: