Azure / Azure/data-api-builder

"The 'kind' value 'MultiHash' specified in the partition key definition is invalid. Please choose 'Hash' partition type."

Open
#1,733 8 comments 0 reactions 2 assignees Claimed by @neeraj-sharma2592 View on GitHub
cosmos engine hacktoberfest known-issue
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

Description

Hi there!
I'm using DAB to query a CosmosDB NoSQL container with partition keys of:

```
id: ID
/TenantId: String
/EntityType: String
/EntityId: String
```
Example:
![image](https://github.com/Azure/data-api-builder/assets/5838388/6c686a26-556b-47d7-93b1-8fa5e131bd48)

The items within this table have been assigned the model of "Location"

I am trying to create an item using the "createLocation" function generated by DAB, with a mutation such as the below:

```
mutation{
createLocation(item:{
TenantId: "1",
EntityType: "FromDAB",
EntityId: "1",
Address: "HelloGitHub"
}) {
TenantId
EntityType
EntityId
Address
}
}
```

However I get a 404 message with the error:

`The 'kind' value 'MultiHash' specified in the partition key definition is invalid. Please choose 'Hash' partition type.`

Please could you let me know how I can use the "createLocation" mutation correctly to create an item within my database?

Thanks!

Rich

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.