Skip to content
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

Resolve issues with Hierarchical Partition keys #1165

Open
NikolaPeevski opened this issue Jan 21, 2025 · 0 comments
Open

Resolve issues with Hierarchical Partition keys #1165

NikolaPeevski opened this issue Jan 21, 2025 · 0 comments

Comments

@NikolaPeevski
Copy link

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

Currently, if consumers provide Hierarchical Partition keys (an array of string keys, instead of plain string key) the package errors out, particularly due to the following line of code https://github.com/nestjs/azure-database/blob/master/lib/cosmos-db/cosmos-db.providers.ts#L54
This affects both the package as well as the sample events application

Expected behavior

Support Hierarchical partition keys.

Minimal reproduction of the problem with instructions

  1. Clone the repo
  2. Configure and ran the sample events project

What is the motivation / use case for changing the behavior?

Environment


Nest version: X.Y.Z

 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

CC: @kamilmysliwiec @manekinekko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant