0👍
This depends a bit on the definition of when a node expires. If you store the timestamp of when a child node becomes outdated, e.g.
child.expires = Date.now();
Then you can query for nodes that haven’t expired with:
firebase.database().ref('events').orderByChild('expires').startAt(Date.now()).once('value')
.then((data) => {
...
- [Vuejs]-Laravel + Vue.js MPA/SPA hybrid structure suggestions and thoughts
- [Vuejs]-Vue.js – Element UI – Nested dialog won't open from dropdown menu
Source:stackexchange.com