We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
6.4.3
16
N/A
Very similarly to #12017, ConcatArrays doesn't allow $cond
import type { Expression } from 'mongoose'; const concat: Expression.ConcatArrays = { $concatArrays: [ { $cond: { if: { $eq: ['foo', true] }, then: [1], else: [2] } } ] }
Playground link: https://www.typescriptlang.org/play?ssl=13&ssc=2&pln=1&pc=1#code/JYWwDg9gTgLgBDAnmApnA3nAogDzFFAZ0OAgDs4BfOAMyghDgHIRyBzCCQlJgbgCh+AY3KF4IskICGMAFzY8BYqTIA6AMLlpMAIJQoUxITgBeDPziW4AEgna9Bo-IDaFq+-Rv33mxIAm8p4+wVbANIE2KACOLkw0nEwANAhQAK4oALpUiV4h3jAAFihkLgCMGTl5wSgANtwuAEwZuSGULVZt7s2UQA
It should build without error
The text was updated successfully, but these errors were encountered:
86f66b0
No branches or pull requests
Prerequisites
Mongoose version
6.4.3
Node.js version
16
MongoDB server version
N/A
Description
Very similarly to #12017, ConcatArrays doesn't allow $cond
Steps to Reproduce
Playground link: https://www.typescriptlang.org/play?ssl=13&ssc=2&pln=1&pc=1#code/JYWwDg9gTgLgBDAnmApnA3nAogDzFFAZ0OAgDs4BfOAMyghDgHIRyBzCCQlJgbgCh+AY3KF4IskICGMAFzY8BYqTIA6AMLlpMAIJQoUxITgBeDPziW4AEgna9Bo-IDaFq+-Rv33mxIAm8p4+wVbANIE2KACOLkw0nEwANAhQAK4oALpUiV4h3jAAFihkLgCMGTl5wSgANtwuAEwZuSGULVZt7s2UQA
Expected Behavior
It should build without error
The text was updated successfully, but these errors were encountered: