@@ -511,7 +511,7 @@ describe('Testing of the collection.config namespace', () => {
511511 expect ( notUpdated ?. status ) . toEqual ( 'READY' ) ;
512512 } ) ;
513513
514- it ( 'should be able update the config of a collection' , async ( ) => {
514+ it . only ( 'should be able update the config of a collection' , async ( ) => {
515515 const collectionName = 'TestCollectionConfigUpdate' ;
516516 const collection = await client . collections . create ( {
517517 name : collectionName ,
@@ -520,11 +520,23 @@ describe('Testing of the collection.config namespace', () => {
520520 name : 'testProp' ,
521521 dataType : 'text' ,
522522 } ,
523+ {
524+ name : 'testProp2' ,
525+ dataType : 'text' ,
526+ } ,
523527 ] ,
524528 vectorizers : weaviate . configure . vectorizer . none ( ) ,
525529 } ) ;
530+ const supportsUpdatingPropertyDescriptions = await client
531+ . getWeaviateVersion ( )
532+ . then ( ( ver ) => ver . isAtLeast ( 1 , 27 , 0 ) ) ;
526533 const config = await collection . config
527534 . update ( {
535+ propertyDescriptions : supportsUpdatingPropertyDescriptions
536+ ? {
537+ testProp : 'This is a test property' ,
538+ }
539+ : undefined ,
528540 vectorizers : weaviate . reconfigure . vectorizer . update ( {
529541 vectorIndexConfig : weaviate . reconfigure . vectorIndex . hnsw ( {
530542 quantizer : weaviate . reconfigure . vectorIndex . quantizer . pq ( ) ,
@@ -539,6 +551,18 @@ describe('Testing of the collection.config namespace', () => {
539551 {
540552 name : 'testProp' ,
541553 dataType : 'text' ,
554+ description : supportsUpdatingPropertyDescriptions ? 'This is a test property' : undefined ,
555+ indexRangeFilters : false ,
556+ indexSearchable : true ,
557+ indexFilterable : true ,
558+ indexInverted : false ,
559+ vectorizerConfig : undefined ,
560+ nestedProperties : undefined ,
561+ tokenization : 'word' ,
562+ } ,
563+ {
564+ name : 'testProp2' ,
565+ dataType : 'text' ,
542566 description : undefined ,
543567 indexRangeFilters : false ,
544568 indexSearchable : true ,
0 commit comments