Azure/data-api-builder
在 GitHub 查看"The 'kind' value 'MultiHash' specified in the partition key definition is invalid. Please choose 'Hash' partition type."
Open
#1,733 创建于 2023年9月20日
cosmosenginehacktoberfestknown-issue
仓库指标
- Star
- (1,459 star)
- PR 合并指标
- (PR 指标待抓取)
描述
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:
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