How can get data with parameter on Firebase?



I have a real time database on Firebase, here is the screenshot form that


So I want get data by using parameter, for example I want get a rcord with uID parameter. How can do that?


I could get data, but it is not clear answer for this question because I get data with a specific key value. Here is the example;

db.database.ref('/User/-L88gtymS5pS3KWtZrmI').on('value', res => {

But as you can guess, I can not give key values manually in the code, so I need a dynamic structure.