googlearchive / flashlight

A pluggable integration with ElasticSearch to provide advanced content searches in Firebase.
http://firebase.github.io/flashlight/
756 stars 144 forks source link

refBuilder: Cannot read property 'key' of undefined #151

Open nicoonee opened 7 years ago

nicoonee commented 7 years ago

I have an issue when use refBuilder and do try catch inside function PathMonitor(esc, path) {) i got TypeError: Cannot read property 'key' of undefined.

My config code: refBuilder: function(ref, path) { return ref.ref.orderByChild('updatedAt').startAt(Date.now()); }

and data structure is

items: { $id: { createdAt: id: name: updatedAt: }

kleeb commented 7 years ago

https://github.com/firebase/flashlight/pull/163