Is it possible to set up data access rules for a Realtime Database property based on a specific piece of data that the user is requesting?
For example, I'm an authenticated user (using Firebase Authentication), and I'm querying a certain property from the database, like this:
firebase.ref('myLists').orderByChild('listId').equalTo('someString').on('value', (snapshot) => {
// ...
})
In what ways can I use that 'someString' value in Database Rules?
For .write, we have access to data and newData, but I don't think there is something similar for .read?