Skip to content

Commit 657936e

Browse files
authored
feat: HELP-48343 added project propertie to trigger (#111)
1 parent 257987e commit 657936e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

API.md

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/l1-resources/trigger/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,13 @@ export interface DatabaseConfig {
179179
*/
180180
readonly match?: string;
181181

182+
/**
183+
* stringify version of a [$project](https://www.mongodb.com/docs/manual/reference/operator/aggregation/project/) expressions to limit the data included in each event.
184+
*
185+
* @schema DatabaseConfig#Project
186+
*/
187+
readonly project?: string;
188+
182189
/**
183190
* If `true`, indicates that `UPDATE` change events should
184191
* include the most current
@@ -250,6 +257,7 @@ export function toJson_DatabaseConfig(
250257
Collection: obj.collection,
251258
OperationTypes: obj.operationTypes?.map((y) => y),
252259
Match: obj.match,
260+
Project: obj.project,
253261
FullDocument: obj.fullDocument,
254262
FullDocumentBeforeChange: obj.fullDocumentBeforeChange,
255263
SkipCatchupEvents: obj.skipCatchupEvents,

0 commit comments

Comments
 (0)