mongoose icon indicating copy to clipboard operation
mongoose copied to clipboard

Enable to access schema in statics method

Open cuongsimplypost opened this issue 9 years ago • 1 comments

Hi,

I had written a static method to add the custom query to model. But I don't known how to access the Schema to get paths info in these methods.

Is it possible ? Thanks & regards

cuongsimplypost avatar May 19 '17 03:05 cuongsimplypost

I had figure out it. The problem is in my codes.

cuongsimplypost avatar May 19 '17 04:05 cuongsimplypost