Firebase - Filters typescript

Hi, how can I filter this registers in typescript? I need something this:

I need filter in sub collection “Compartilhar” the register “IdUser” == 22… The result can return 1 or more registers…

PS: my table in firebase have many registers… so… I need filter in this first step… I cant return many register…

please a kind soul to help me?