I am wanting to fetch all users that contain a child node 'notificationToken' and exclude all users that don't have this node. I am using the following:
const ref = admin.database().ref('/Users');
const users = await ref.orderByChild('notificationToken').equalTo(****WHAT GOES HERE****).once('value').then((snapshot) => snapshot.val());
I'm not sure if equalTo can do what I want, I know I can use it to match exact strings or booleans, but how can I use it to match if the user has the notificationToken node?