I need assistance with querying a Realtime Database structure for AEDs based on their owner. I want the query to return all AEDs (including children) that have a matching owner id.
Despite my efforts, I have been unable to achieve this even though it seems like it should be simple. Below is the code I am currently using:
var aedRef = dbRef.ref().child("aeds")
var query = aedRef.orderByChild("owner").equalTo(userID);
console.log(query);
Although I believe that this should work without issues, I keep getting the following output:
e {repo: e, path: e, Me: e, Le: true}
If anyone can provide some guidance or assistance, it would be greatly appreciated. Thank you!