Is orderByChild(x).equalTo(y).limitToFirst(n) running on the firebase server-side ?
Let's say I have two Node.js processes listening to a Firebase node "tasks". On each node, I do :
- Process1: tasks.orderByChild('_state').equalTo("state_1").limitToFirst(1)
- Process2: tasks.orderByChild('_state').equalTo("state_2").limitToFirst(1)
The "tasks "firebase node is going to receive many child nodes with different "_state" values. I'd like to know if each Node.js process will receive all events or just the one with the corresponding "_state" value as defined by the orderByChild().equalTo() ? (server-side VS client-side)
Thank you very much in advance,
Kind regards,