Server - Query function
If you want to restrict the data of a collection a user can query you have to options.
You could add the
[QueryAuth] attribute to the model-class. This will lead to one problem. The values first will be queried from the database and then the check is made for every value.
To improve performance you can also use
[QueryFunction]. This attribute has to reference a static function in your model, that returns a boolean lambda expression. This expression is then used in the query and executed in the database directly.
HttpInformation-object with information about the request and the instances found in the