Closed hbsbashitha closed 1 year ago
Facing the same issue, @hbsbashitha try using this package ts-cache-mongoose
Facing the same issue, @hbsbashitha try using this package ts-cache-mongoose
thank you @sahiljain2497 for your solution
Our final decision is in Mongoose version upgrade there were modifications done for the model registration part.Older mongoose versions when we register in connection.model, mongoose register that model on their mongoose.model itself. But in updated versions if when we use the connection. model that model only registers for the connection. The issue comes from Recachegoose because the Recachegoose npm package checked models only from Mongoose models. our solution is we forcefully register our models in connection. model and mongoose. model.
Yeah it has limitation on recachegoose. If you have the solution, would you mind to create the PR? I'm sure it will really helpful for the community. Thanks.
I've just release the PR, maybe it will address this issue. Please check Pull 14
solved that error from a new version 10 thank you @uditha-g and @aalfiann
This can be simply said that Query.cache() is not a function.
Versions:
code
(Using Typescript)
middleware.ts
fetch.ts
ERROR: