Skip to content

Commit

Permalink
Merge pull request #12715 from coyotte508/patch-5
Browse files Browse the repository at this point in the history
fix(types): Update replaceWith pipeline stage
  • Loading branch information
vkarpov15 committed Nov 22, 2022
2 parents 15c0068 + 616ce5d commit df7ea24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/pipelinestage.d.ts
Expand Up @@ -213,7 +213,7 @@ declare module 'mongoose' {

export interface ReplaceWith {
/** [`$replaceWith` reference](https://docs.mongodb.com/manual/reference/operator/aggregation/replaceWith/) */
$replaceWith: ObjectExpressionOperator | { [field: string]: Expression };
$replaceWith: ObjectExpressionOperator | { [field: string]: Expression } | `$${string}`;
}

export interface Sample {
Expand Down

0 comments on commit df7ea24

Please sign in to comment.