[DOCS-12194] $type documentation should elaborate on behavior for string types Created: 12/Nov/18 Updated: 30/Oct/23 Resolved: 10/Sep/19 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Harshad Dhavale | Assignee: | Nathan Contino (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | docs-onboarding-candidate | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 4 years, 22 weeks, 1 day ago |
| Epic Link: | DOCSP-1769 |
| Story Points: | 0.1 |
| Description |
Description{$type: 2} finds the documents where the value of the field contains a string. Note that the string can be:
and {$type: 2} and $type will still return the document containing that array. For example:
Currently, our documentation on $type does not mention this behavior. This leads to some confusion, as some users expect {$type: 2} to return documents that contain the string in a field just by itself. This request is for a doc update, so that our doc clearly mentions the above behavior.
Scope
External Review should be someone on Query. |
| Comments |
| Comment by Githook User [ 10/Sep/19 ] |
|
Author: {'username': 'nathan-contino-mongo', 'email': 'nathan.contino@mongodb.com', 'name': 'nathan-contino-mongo'}Message: |