mongoose-cachebox
mongoose-cachebox copied to clipboard
Query::bind not called automatically so query._cache is undefined
In Mongoose 3.8.x, it appears that Query::bind()
is not being called automatically at the time of query creation. As a result, when I make a call to query.cache()
, no Cache
object has been created and assigned to query._cache
.
@ggoodman thank you for reporting this, I will take a look and hopefully come up with the solution soon. I will test against Mongoose 3.8.1
JB
I haven't forgot about this issue, I just been very busy these days :( with my daily job, but I did had a time to take a look at what was going on, basically in Mongoose 3.8+ the Query object was refactored and some methods like bind
, execFind
are now gone in favor of the latest version of mquery
, I will need to do some major refactoring, I will see if I can do this late this week, this new version definitely will not be compatible with previous versions.
Stay tuned for updates!
Best, JB
+1 Mongoose 3.8.X support :+1:
Fantastic, looking forward to it.
I've run into the same issue, would look forward to an update as well!
:+1:
i got some errors. please :+1:
Anything new?
Im getting the following on mongoose version 3.8.12
"message" : "Cannot call method 'ttl' of undefined"
any updated about this one?
^
Up! :+1:
Up! "TypeError: Cannot call method 'ttl' of undefined" on mongoose version 3.8.18
Up! "TypeError: Cannot call method 'ttl' of undefined" on mongoose version 3.8.18
+1
+1
TypeError: Cannot read property \'ttl\' of undefined'
"mongoose": "^4.1.2",
"mongoose-cachebox": "^1.2.0",
experienced the same thing
+1
+1
Project Dead?