Server side queries
For security reasons and make development across multiple implementations you may want to define queries on server side.
Those queries almost work like normal client defined queries and give you all features you normally have, enriched with some server only features like custom select-returns and full support of all EF-Core supported where-clauses.
You can run auth checks etc. if you need to.
If you want to define a default query that always gets executed before custom queries you can define that too. This comes handy when implementing Soft-Delete functionality for example.