Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exporting mongoose.Query.prototype.cache ; #1

Open
chrisn-au opened this issue Jun 29, 2020 · 0 comments
Open

exporting mongoose.Query.prototype.cache ; #1

chrisn-au opened this issue Jun 29, 2020 · 0 comments

Comments

@chrisn-au
Copy link

Fantastic work thanks - A question and possibly due to my ignorance but to get this to work I needed to export the cache function

module.exports.cache = mongoose.Query.prototype.cache ;

and then require it in the calling module

const  clearKey  = require("./cache").clearKey;
const cache = require('./cache').cache

Is this correct ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant