summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/create_indexes.idl3
-rw-r--r--src/mongo/db/list_indexes.idl3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/create_indexes.idl b/src/mongo/db/create_indexes.idl
index 300e65b31ca..139a4270c0d 100644
--- a/src/mongo/db/create_indexes.idl
+++ b/src/mongo/db/create_indexes.idl
@@ -106,7 +106,8 @@ structs:
optional: true
unstable: true
weights:
- type: object_owned
+ type:
+ variant: [string, object_owned]
optional: true
default_language:
type: string
diff --git a/src/mongo/db/list_indexes.idl b/src/mongo/db/list_indexes.idl
index e53c8947da5..3efc9e02f91 100644
--- a/src/mongo/db/list_indexes.idl
+++ b/src/mongo/db/list_indexes.idl
@@ -79,7 +79,8 @@ structs:
type: object_owned
optional: true
weights:
- type: object_owned
+ type:
+ variant: [string, object_owned]
optional: true
default_language:
type: string