summaryrefslogtreecommitdiff
path: root/src/mongo/idl/basic_types.idl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/idl/basic_types.idl')
-rw-r--r--src/mongo/idl/basic_types.idl10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/idl/basic_types.idl b/src/mongo/idl/basic_types.idl
index 6352fa9d4ab..a52fc202fe2 100644
--- a/src/mongo/idl/basic_types.idl
+++ b/src/mongo/idl/basic_types.idl
@@ -47,6 +47,16 @@ types:
cpp_type: "std::int32_t"
deserializer: "mongo::BSONElement::_numberInt"
+ safeInt:
+ bson_serialization_type:
+ - long
+ - int
+ - decimal
+ - double
+ description: "Accepts any numerical type within integer range"
+ cpp_type: "std::int32_t"
+ deserializer: "mongo::BSONElement::safeNumberInt"
+
safeInt64:
bson_serialization_type:
- long