Skip to content

Conversation

rylev
Copy link
Contributor

@rylev rylev commented Jan 6, 2021

Fixes #127

This changes APIs that took PartitionKeys to take Into<PartitionKeys> instead. Additionally, it changes the conversions to PartitionKeys such that collections are the only thing that convert to PartitionKeys which is more logical than turning single elements into PartitionKeys (which is logically plural). This does mean that users will have to wrap their partition keys in [] but I think this makes sense.

In general calls will normally look like:

with_partition_keys(["key1", "key2"])

Copy link

@thomastaylor312 thomastaylor312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like these changes. Good to go pending passing tests

@rylev rylev merged commit a82c4f3 into Azure:master Jan 6, 2021
@rylev rylev deleted the flexible-partition-keys branch January 6, 2021 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cosmos: Remove or change PartitionKeys type

2 participants