[DOCS-7684] Comment on: "manual/reference/operator/query/type.txt" Created: 18/Apr/16 Updated: 30/Oct/23 Resolved: 24/Jan/18 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Docs Collector User (Inactive) | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7, docs-triage | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 10 Location: https://docs.mongodb.org/manual/reference/operator/query/type/ |
||
| Participants: | |
| Days since reply: | 6 years, 3 weeks, 1 day ago |
| Description |
|
Querying by Array Type The query shown is incorrect. Also the $type operator for fields that are array s either of strings or of objects do not work |
| Comments |
| Comment by Kay Kim (Inactive) [ 24/Jan/18 ] |
|
Before MongoDB 3.6, as mentioned in the v3.4 of the manual (which I believe this ticket was in regards to) https://docs.mongodb.com/v3.4/reference/operator/query/type/#arrays,
In 3.6, $type will match an array field, not an array that contains an array as an element. |