[DOCS-16417] Investigate changes in SERVER-49387: Poorly worded parsing error messages for match expressions Created: 04/Oct/23  Updated: 27/Oct/23  Resolved: 04/Oct/23

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-49387 Poorly worded parsing error messages ... Closed
Participants:
Days since reply: 18 weeks ago

 Description   
Original Downstream Change Summary

This change modifies error messages when incorrectly using `$and`, `$or`, `$not` and `$nor` operators in `$match` expressions.

Description of Linked Ticket

$and with argument that is not an array:

       $and must be an array (2) 

Suggest "$and argument must be an array" instead.

$not with an empty hash argument:

       $not cannot be empty (2)

Suggest "$not argument cannot be an empty document" instead.



 Comments   
Comment by Ashley Brown [ 04/Oct/23 ]

No documentation required here

Generated at Thu Feb 08 08:15:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.