Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow for Leading "/" In Partition Keys When Creating Collections #153
Before submitting your issue for the CosmosDB project, please take a moment to provide the following details:
I only came across this by mimicking the behavior in the Azure portal, where it suggests a partition key of "/address/zipCode", so I tried entering in a partition key of "/Document/MyId" via:
And I got the following response:
Digging deeper, I get:
I only figured out what was actually going on by digging into the source here.
This seems like a simple change to only prepend "/" if the
I'd be happy to submit the fix myself if this is something useful to anyone besides me.