title: Spring data mongo @Query bind date
body: <p>I have a spring mongo repository with the following method</p>
  
  <pre><code>@Query(value = "{'topicId':{$in: ?0},'ts':{$gt:{$date:?2}, $lte:{$date:?3}}, 'status': {$ne:?4}, 'seen':?1 }")
      public Page&lt;NotificationReference&gt; findByTopicIdInAndSeenAndStatusNot(List&lt;String&gt; topicIds, Boolean seen,
              Date from, Date to, String status, Pageable pageable);
  </code></pre>
  
  <p>But the ?2 and ?3 date variables are not resolving to their values.  I'm passing  a <code>java.util.Date</code> to the method, how do I get spring to resolve date variables for mongo queries?</p>