Firebase filtering

Hi there…
I need to filter my firebase realtime database. I know that using orderByChild and equalTo does this but what I need is to retrieve only elements based on a condition. For example, something like ref(‘ref’).orderByChild(‘child’).contains(‘value that I want to be present on childs’)… Is there any way to do this as I cannot see anything related to this on the documentation…
Thanx in advance