You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.
hi there, and thanks for the great job you re doing here.
my concern is about use of Builder :: elemMatch in the select part of the query builder,
the available elemMatch method of query builder is now usable only as part of query part not the projection one.
would it be possible to add something like selectSlice to do so :
public function selectElemMatch($fieldName, $elemMatch)
{
$this->query['select'][$fieldName] = array($this->cmd . 'elemMatch' => $elemMatch);
return $this;
}
or simply modify the select method to with a second argument (defaults to 1), to hold the elemMatch filter condition.
Regards
The text was updated successfully, but these errors were encountered:
hi there, and thanks for the great job you re doing here.
my concern is about use of Builder :: elemMatch in the select part of the query builder,
the available elemMatch method of query builder is now usable only as part of query part not the projection one.
would it be possible to add something like selectSlice to do so :
or simply modify the select method to with a second argument (defaults to 1), to hold the elemMatch filter condition.
Regards
The text was updated successfully, but these errors were encountered: