@@ -100,8 +100,9 @@ function pickCollectionInfo({
100100 validation,
101101 clustered,
102102 fle2,
103+ shardKey
103104} ) {
104- return { readonly, view_on, collation, pipeline, validation, clustered, fle2 } ;
105+ return { readonly, view_on, collation, pipeline, validation, clustered, fle2, shardKey } ;
105106}
106107
107108/**
@@ -128,6 +129,7 @@ const CollectionModel = AmpersandModel.extend(debounceActions(['fetch']), {
128129 view_on : 'string' ,
129130 collation : 'object' ,
130131 pipeline : 'array' ,
132+ shardKey : 'object' ,
131133 validation : 'object' ,
132134
133135 // Normalized values from collStats command
@@ -220,7 +222,7 @@ const CollectionModel = AmpersandModel.extend(debounceActions(['fetch']), {
220222 } ,
221223 } ,
222224 properties : {
223- deps : [ 'collation' , 'type' , 'capped' , 'clustered' , 'readonly' , 'fle2' ] ,
225+ deps : [ 'collation' , 'type' , 'capped' , 'clustered' , 'readonly' , 'fle2' , 'shardKey' ] ,
224226 fn ( ) {
225227 return getProperties ( this ) ;
226228 } ,
@@ -289,6 +291,7 @@ const CollectionModel = AmpersandModel.extend(debounceActions(['fetch']), {
289291 isClustered : this . clustered ,
290292 isFLE : this . fle2 ,
291293 isSearchIndexesSupported,
294+ shardKey : this . shardKey
292295 } ;
293296 if ( this . sourceId ) {
294297 try {
0 commit comments