[DOCS-10734] Docs for SERVER-30245: Extend JSON Schema parser to handle the type keyword containing an array of types Created: 30/Aug/17  Updated: 29/Oct/23  Resolved: 18/Sep/17

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

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Pavithra Vetriselvan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-30245 Extend JSON Schema parser to handle t... Closed
Participants:
Days since reply: 6 years, 24 weeks, 1 day ago
Epic Link: DOCS: 3.6 Server

 Description   

Documentation Request Summary:

The $type query operator can now accept an array of types. For instance, the query

db.coll.find({telephone: {$type: ["number", "string"]}});

matches as long as the type of the telephone field is either a number or a string. The elements of the array can be either string aliases or numerical type codes. The following query uses numerical type codes to find documents where num is either NumberInt or NumberLong:

db.coll.find({num: {$type: [16, 18]}};


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