title: WebAPI and OData - returning Queryable with preconditions
body: <p>I have a simple GET method, which returns IQueryable, and has some preconditions on query:</p>
  
  <pre><code>[Queryable(HandleNullPropagation = HandleNullPropagationOption.False)]
  public IQueryable&lt;Message&gt; Get()
  {
      using (var session = RavenStore.GetSession())
      {
          var messages = session.Query&lt;Message&gt;().Where(x =&gt; x.TargetUserId == this.User.Identity.Name || x.SourceUserId == this.User.Identity.Name);
          return messages;
      }
  }
  </code></pre>
  
  <p>This is RavenDB, btw. The issue I'm having is that upon execution the user id is replaced with "[EMPTY_STRING]", so the actual query its running is this:</p>
  
  <blockquote>
    <p>'TargetUserId:[[EMPTY_STRING]] OR SourceUserId:[[EMPTY_STRING]]' on
    index .....</p>
  </blockquote>
  
  <p>which is obviously wrong.</p>
  
  <p>If I'm returning List instead of IQueriable - it works fine, so something later in the pipeline changes the query. Does anyone have any insight on how to make this work ?</p>