mongoose-cachebox icon indicating copy to clipboard operation
mongoose-cachebox copied to clipboard

Query::bind not called automatically so query._cache is undefined

Open ggoodman opened this issue 11 years ago • 21 comments

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 avatar Nov 29 '13 15:11 ggoodman

@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

cayasso avatar Nov 29 '13 20:11 cayasso

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

cayasso avatar Dec 04 '13 07:12 cayasso

+1 Mongoose 3.8.X support :+1:

pekpon avatar Dec 12 '13 18:12 pekpon

Fantastic, looking forward to it.

ggoodman avatar Dec 18 '13 13:12 ggoodman

I've run into the same issue, would look forward to an update as well!

davepenfold avatar Jun 23 '14 00:06 davepenfold

:+1:

krzysztofantczak avatar Jul 04 '14 16:07 krzysztofantczak

i got some errors. please :+1:

hengkiardo avatar Jul 07 '14 16:07 hengkiardo

Anything new?

tomasikp avatar Aug 03 '14 11:08 tomasikp

Im getting the following on mongoose version 3.8.12

"message" : "Cannot call method 'ttl' of undefined"

maumercado avatar Aug 26 '14 23:08 maumercado

any updated about this one?

hengkiardo avatar Sep 25 '14 07:09 hengkiardo

^

FelikZ avatar Nov 28 '14 11:11 FelikZ

Up! :+1:

Tailzip avatar Dec 01 '14 04:12 Tailzip

Up! "TypeError: Cannot call method 'ttl' of undefined" on mongoose version 3.8.18

MacLeodRu avatar Dec 29 '14 20:12 MacLeodRu

Up! "TypeError: Cannot call method 'ttl' of undefined" on mongoose version 3.8.18

imtcn avatar Feb 12 '15 06:02 imtcn

+1

SerjoPepper avatar Apr 02 '15 22:04 SerjoPepper

+1

rodriguise avatar Aug 31 '15 23:08 rodriguise

TypeError: Cannot read property \'ttl\' of undefined'
    "mongoose": "^4.1.2",
    "mongoose-cachebox": "^1.2.0",

kaue avatar Jul 02 '16 16:07 kaue

experienced the same thing

OrenSchwartz avatar Jul 02 '16 22:07 OrenSchwartz

+1

loris avatar Aug 18 '16 09:08 loris

+1

paivaric avatar Mar 06 '17 13:03 paivaric

Project Dead?

polonel avatar May 03 '17 05:05 polonel