summaryrefslogtreecommitdiff
path: root/src/mongo/idl
diff options
context:
space:
mode:
authorJamie Heppenstall <jamie.heppenstall@mongodb.com>2019-06-17 14:42:54 -0400
committerJamie Heppenstall <jamie.heppenstall@mongodb.com>2019-07-12 16:59:06 -0400
commit6e02a4d34bd972e6755bb5f71a5b26f69fe2cfb0 (patch)
tree1a68aa771c357aceb88686004b4f2e730afa17d2 /src/mongo/idl
parent75e47b701d34c9ef7beb0482121ac8b62d2d4991 (diff)
downloadmongo-6e02a4d34bd972e6755bb5f71a5b26f69fe2cfb0.tar.gz
SERVER-41658 Convert ShardCollectionType into an IDL type
Diffstat (limited to 'src/mongo/idl')
-rw-r--r--src/mongo/idl/basic_types.idl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/idl/basic_types.idl b/src/mongo/idl/basic_types.idl
index 7005fdc4bc3..7ebee57fb3f 100644
--- a/src/mongo/idl/basic_types.idl
+++ b/src/mongo/idl/basic_types.idl
@@ -136,9 +136,15 @@ types:
object:
bson_serialization_type: object
- description: "A BSONObj without custom deserialization or serialization"
+ description: "An unowned BSONObj without custom deserialization or serialization"
cpp_type: "mongo::BSONObj"
+ object_owned:
+ bson_serialization_type: object
+ description: "An owned BSONObj"
+ cpp_type: "mongo::BSONObj"
+ deserializer: "BSONObj::getOwned"
+
date:
bson_serialization_type: date
description: "A BSON UTC DateTime"