I found this SO answer: MaxExpansionDepth with latest webapi and breeze
But this only applies to a single method on the controller. Applying the BreezeQueryable attribute to the controller itself breaks the entire controller at runtime with this exception: Token PropertyName in state ArrayStart would result in an invalid JSON object. Path ''.
This is presumably because not all of the methods on my (large) breeze controller return IQueryable.
So, how do I change MaxExpansionDepth for my entire breeze controller? The BreezeControllerAttribute seems to accept all of the BreezeQueryableAttribute parameters EXCEPT MaxExpansionDepth.
Thanks, Mathias