I have a `User` model with a related `EnrollmentInformation` model:

```
class User
  include Mongoid::Document
  has_one :enrollment_information
end

class EnrollmentInformation
  include Mongoid::Document
  belongs_to :user
  field :type_one, :type => Boolean  
end

```

I'd like to find all users where the `EnrollmentInformation`'s `type_one` field's value is true.

I've tried several variations on this without success. Does anyone know how I can make this query?

```
User.includes(:enrollment_information).where(:"enrollment_information.type_one" => true)

```

EDIT:

Updated query