PartitionKey Class

Key used to partition a container into logical partitions.

See https://docs.microsoft.com/azure/cosmos-db/partitioning-overview#choose-partitionkey for information on how to choose partition keys.

Inheritance
builtins.dict
PartitionKey

Constructor

PartitionKey(path, kind='Hash', version=2)

Parameters

path
kind
default value: Hash
version
default value: 2

Variables

path

The path of the partition key

kind

What kind of partition key is being defined (default: "Hash")

version

The version of the partition key (default: 2)

Attributes

kind

path

version