title: Risks of using OData and IQueryable
body: <p>I have seen many tutorials about making SPA (single page application) and many of them uses an external library such as breezejs and jaydatajs in order to get an automated dataservice layer.</p>
  
  <p>These libraries expect that I'll expose an IQueryable object that they can query.</p>
  
  <p>My question is, what are the risks of exposing an IQueryable from the server? I want the know if making this shortcut with those js libraries worth it, or should I expose my own functions in the server and implement the dataservice myself in the client.</p>
  
  <p>The thing is, when exposing an Iqueryable, I can use breezejs, for example, to create queries for filtering and paging with linq like syntax. If I'll not use it, I will have to implement these functions for filtering and paging in the server. and implement the calls to them in the javascript.</p>
  
  <p>I hope I was clear :-)</p>