mongoose
mongoose copied to clipboard
Enable to access schema in statics method
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
I had figure out it. The problem is in my codes.