Skip to content

Patch for Numeric PartitionKeys #31

@M-Chris

Description

@M-Chris

Currently a int/float/etc. value for a partition key fails without good cause..

Line 520 of CosmosDb.php should read like:

$headers['x-ms-documentdb-partitionkey'] = (is_string($partitionKey) ? '["'.$partitionKey.'"]' : '['.$partitionKey.']');

cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions