Is there a workaround for CosmoDB not fully supporting Mongo DB API v6.0 #24244
Unanswered
kharalanova
asked this question in
Q&A
Replies: 1 comment
-
Hi @kharalanova 👋 Currently, we do not have a workaround or full support for CosmosDB yet. You can take a look at the the open issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
this is the error I get:
Raw query failed. Code:
unknown
. Message: `Kind: Command failed: Error code 115 (CommandNotSupported): let not supported, labels: {}which I understand that is due to using Azure Cosmo DB which got this limitation and it not fully compliant with Mongo DB API (v6.0):
The $lookup aggregation does not yet support the uncorrelated subqueries feature that's introduced in server version 3.6. If you attempt to use the $lookup operator with the let and pipeline fields, an error message that indicates that let is not supported appears.
What I am interested is there a workaround? Another way I can rewrite the code and/or the model in order to achieve the same
Thank you
How to reproduce (optional)
Expected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
20.11.1
prisma -v
to see your Prisma version and paste it5.12.0
Beta Was this translation helpful? Give feedback.
All reactions