summaryrefslogtreecommitdiff
path: root/src/mongo/bson
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2017-06-27 15:26:26 -0400
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2017-06-27 17:57:36 -0400
commit8aa235f5b5eb82223cee67433df4cb78e19d10c5 (patch)
tree6974625936875735fd0153d0739631cd64512814 /src/mongo/bson
parent9c65741b29f592379be4114f651849e8dde856b6 (diff)
downloadmongo-8aa235f5b5eb82223cee67433df4cb78e19d10c5.tar.gz
SERVER-29587: Create $_internalSchemaMinItems and $_internalSchemaMaxItems MatchExpressions
Diffstat (limited to 'src/mongo/bson')
-rw-r--r--src/mongo/bson/bsonelement.cpp2
-rw-r--r--src/mongo/bson/bsonobj.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/bson/bsonelement.cpp b/src/mongo/bson/bsonelement.cpp
index 679367f1c18..454a938a17f 100644
--- a/src/mongo/bson/bsonelement.cpp
+++ b/src/mongo/bson/bsonelement.cpp
@@ -334,6 +334,8 @@ const StringMap<BSONObj::MatchType> queryOperatorMap{
{"bitsAllClear", BSONObj::opBITS_ALL_CLEAR},
{"bitsAnySet", BSONObj::opBITS_ANY_SET},
{"bitsAnyClear", BSONObj::opBITS_ANY_CLEAR},
+ {"_internalSchemaMinItems", BSONObj::opINTERNAL_SCHEMA_MIN_ITEMS},
+ {"_internalSchemaMaxItems", BSONObj::opINTERNAL_SCHEMA_MAX_ITEMS},
};
// Compares two string elements using a simple binary compare.
diff --git a/src/mongo/bson/bsonobj.h b/src/mongo/bson/bsonobj.h
index 15e2326c0db..49d0edf06bc 100644
--- a/src/mongo/bson/bsonobj.h
+++ b/src/mongo/bson/bsonobj.h
@@ -528,6 +528,8 @@ public:
opBITS_ALL_CLEAR = 0x18,
opBITS_ANY_SET = 0x19,
opBITS_ANY_CLEAR = 0x1A,
+ opINTERNAL_SCHEMA_MIN_ITEMS = 0x1B,
+ opINTERNAL_SCHEMA_MAX_ITEMS = 0x1C,
};
/** add all elements of the object to the specified vector */