Create a collection to store json documents and you can specify the index to accelerate query speed
constindex1:Index = { path:'/city', // a top level field name 'city' and the path will be '/city' indexType:IndexType.StringKey } const {collection, result} = awaitcreateCollection(db, "test_collection", [index1])
current all supported index types are 'IndexType.Uniquekey' , 'IndexType.StringKey', 'IndexType.Int64key' and 'IndexType.Doublekey'
Create a collection to store json documents and you can specify the index to accelerate query speed
current all supported index types are 'IndexType.Uniquekey' , 'IndexType.StringKey', 'IndexType.Int64key' and 'IndexType.Doublekey'