Breeze filtering .Expand on server side
I'm trying out BreezeJS . There is a requirement that I can use .expand in the client side code, but based on the role of the user, the server side will not return all the records for the .expand requested type. I tried to create a custom BreezeQueryable attribute and override a method to completely filter out the extra data first just to try. But it threw an exception. I don't see any entry point where I can do that on the server side. Please guide me in the right direction, or let me know if that's not possible. I only have access to generic IQueryable , how do I perform queries on this?