Closed mastasky closed 6 years ago
Most amazingly I could just use this call
@odata.GET
async find(@odata.context context, @odata.query query: ODataQuery): Promise<Record[]> {
...
}
The key is then to USE query and context in the code. If you don't, the objects are empty.
Hi,
I have a large recordset that holds records owned by different users. Now I want to enable them to use OData to query their (!) data only.
My ideas were like this:
Option 1 should be easy enough, as xyz is in the context, but I can't access it from my "find" GET function. That one only has query.
Option 2 throws an error.
How can I do this? Thanks for your help.