Skip to content

Commit

Permalink
fix(types): Update replaceWith pipeline stage
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 committed Nov 22, 2022
1 parent 15c0068 commit aa06f1d
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 aa06f1d

Please sign in to comment.