[DOCS-6336] Comment on: "manual/reference/operator/query/type.txt" Created: 07/Oct/15  Updated: 03/Nov/17  Resolved: 07/Oct/15

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

Type: Bug Priority: Major - P3
Reporter: Andre Spiegel Assignee: Kay Kim (Inactive)
Resolution: Duplicate Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/operator/query/type/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36
Referrer: https://www.google.com/
Screen Resolution: 1440 x 900
repo: docs
source: reference/operator/query/type


Participants:
Days since reply: 8 years, 19 weeks ago

 Description   

It appears you can also use $type with a string argument that describes the data type, e.g.

{"$type" : "string"}
{"$type": "int"}

(I saw this in the 3.2 training lesson on document validation and had never heard of it before.)

This needs to be documented.



 Comments   
Comment by Kay Kim (Inactive) [ 07/Oct/15 ]

already covered under https://jira.mongodb.org/browse/DOCS-5882

Generated at Thu Feb 08 07:52:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.