public function addEagerConstraints(array $models)
{
$value = $this->getKeys($models);
$value = array_map(function ($value) {
return $value instanceof MongoID ? $value : new MongoID($value);
}, $value);
$this->query->whereIn($this->foreignKey, $value);
}