Querying entities outside services

Is there a way to query entities outside of services. I’m handling my user input reactively, and would like to query entities, so changes can be reflected. Alternatively I don’t mind much reacting inside a service, it was just if there where another way?