summaryrefslogtreecommitdiff
path: root/src/mongo/db/create_indexes.idl
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2021-02-22 19:05:35 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-23 00:41:56 +0000
commit3274c2a3d916cfc3e73c9020660fe4d0fb45ebf2 (patch)
treeac0ae753a5295a555a599053525eee9cab5d47a3 /src/mongo/db/create_indexes.idl
parent137bd47d9138fe9bbb0e1fc81dfbbce2cfd35a96 (diff)
downloadmongo-3274c2a3d916cfc3e73c9020660fe4d0fb45ebf2.tar.gz
SERVER-54706 Fix listIndexes with string-valued weight
Diffstat (limited to 'src/mongo/db/create_indexes.idl')
-rw-r--r--src/mongo/db/create_indexes.idl3
1 files changed, 2 insertions, 1 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