Mongoose with CosmosDB: Getting error `Shared throughput collection should have a partition key`
问题 I have a node-express application that currently uses Mongoose to connect to MongoDB, and am attempting to migrate it to Azure Cosmos DB. When I simply allow Mongoose to create the database, the application works fine, however the database is created with individual collection RU pricing. If I create a new database with Shared throughput enabled and attempt to use that, I get the error Shared throughput collection should have a partition key I have tried updating the collection schema to