appy-one / acebase

A fast, low memory, transactional, index & query enabled NoSQL database engine and server for node.js and browser with realtime data change notifications
MIT License
481 stars 27 forks source link

value event not returning existing data when path contains wildcards/variables #200

Open donl opened 1 year ago

donl commented 1 year ago

Happy New Year! Here is to another great year for you and AceBase! Many thanks to you!

It appears to me that the 'value' event is not returning existing data as requested when the path contains a wildcard/variable.

If I'm correct, can support be added for this? Or if nothing else maybe make a note in the documentation?

db.ref('users/$user/post/$post')
    .on('value', true)
    .subscribe(snap => {
// receives changes, but not existing data
});
appy-one commented 1 year ago

Happy new year! Wildcard paths are only available in queries at the moment, but I'll take a look at adding support for events too 👍🏼

donl commented 1 year ago

Oh and look! Happy #200!