-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DEVEX-106] Fix proposal #372
[DEVEX-106] Fix proposal #372
Conversation
Jira Pull Request LinkThis Pull Request refers to the following Jira issue DEVEX-106 |
Quality Gate passedIssues Measures |
Record<PartitionKey, string | number> | ||
? PartitionKey extends ModelIdKey // partition key === model id means no partition key is provided | ||
? readonly [string] | ||
: readonly [string, string | number] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should also support boolean (?)
: readonly [string, string | number] | |
: readonly [string, string | number | boolean] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically yes. What boolean partition key you imagine to use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't imagine any! I was just wondering to "adhere" to the PrimaryKey
type of @azure/cosmos
which puts it among the supported scalars
I propose a fix on #371
The
DocumentSearchKey
type ensures we query database object by fields whose type isstring
(for model id) orstring | number
(for partition key)