vercel / cosmosdb-server

A Cosmos DB server implementation for testing your applications locally.
MIT License
174 stars 30 forks source link

Add partitionKey check #23

Closed javivelasco closed 4 years ago

javivelasco commented 4 years ago

We need to run some local tests where we have to perform queries for collections that have a partitionKey configuration. Currently, the server is just retrieving documents by id without looking into the partition keys but if we provide a no partition key it must throw while providing a wrong partition key results in 404.

This PR updates read element to do so