We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f50181e commit 7719569Copy full SHA for 7719569
2 files changed
test/types/expressions.test.ts
@@ -217,3 +217,7 @@ const switchExpr: Expression.Switch = {
217
]
218
};
219
})();
220
+
221
+(function gh12149() {
222
+ const count: Expression.Count = { $count: '$value' };
223
+})();
types/expressions.d.ts
@@ -1977,7 +1977,7 @@ declare module 'mongoose' {
1977
* @version 5.0
1978
* @see https://docs.mongodb.com/manual/reference/operator/aggregation/count/#mongodb-expression-exp.-count
1979
*/
1980
- $count: Record<string | number | symbol, never>;
+ $count: Record<string | number | symbol, never> | Path;
1981
}
1982
1983
export interface CovariancePop {
0 commit comments