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
I have a model in it's own file which has a ref to another model in a different file. Then in my controller I import 'ts-mongoose/plugin'; and attempt to use it after a find() operation await Account.find().populateTs('user'); but populateTs has an error "Property 'populateTs' does not exist on type 'Query<any[], any>'. Did you mean 'populate'?"
How is this meant to be implemented?
The text was updated successfully, but these errors were encountered:
I have a model in it's own file which has a ref to another model in a different file. Then in my controller I
import 'ts-mongoose/plugin';
and attempt to use it after a find() operationawait Account.find().populateTs('user');
but populateTs has an error "Property 'populateTs' does not exist on type 'Query<any[], any>'. Did you mean 'populate'?"How is this meant to be implemented?
The text was updated successfully, but these errors were encountered: