code: def add_eager_constraints(self, models):
          
          return self._query.where_in(
              self._foreign_key, self.get_keys(models, self._local_key)
          )
docs: Set the constraints for an eager load of the relation.
  
          :type models: list