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
$text: The $match stage that includes a $text must be the first stage in the pipeline.
$search (Mongodb Atlas search): $search must be the first stage of any pipeline it appears in.
When querying a multitenant domain, we get an error because in the preparePipeline a filter on current tenantId is always inserted as the first stage in the pipeline.
Thanks,
The text was updated successfully, but these errors were encountered:
Hello,
Mongodb documentation says:
$text:
The $match stage that includes a $text must be the first stage in the pipeline.
$search (Mongodb Atlas search):
$search must be the first stage of any pipeline it appears in.
When querying a multitenant domain, we get an error because in the preparePipeline a filter on current tenantId is always inserted as the first stage in the pipeline.
Thanks,
The text was updated successfully, but these errors were encountered: