title: Equivalent Filter MongoDb in Rails
body: <p>I can't create a rails query with mongoid equivalent to a mongo query.</p>
  
  <p>school.student{"sigae.valid_username.username": { $exists: true}}</p>
  
  <p>How can I convert this query to use in Rails with MongoId?</p>