Skip to content

Commit

Permalink
Merge branch 'copy-push-files-action-9665761069-extract-json' into de…
Browse files Browse the repository at this point in the history
…velopment
  • Loading branch information
mongodb-atlas-app-services[bot] committed Jun 25, 2024
2 parents 4e23e63 + b74217e commit d604016
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 8 deletions.
3 changes: 3 additions & 0 deletions snippets/triggers/match/delete.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"fullDocumentBeforeChange.userName": "Alice Smith"
}
4 changes: 4 additions & 0 deletions snippets/triggers/match/insert.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"department": "engineering",
"documentKey.userName": "alice123"
}
4 changes: 4 additions & 0 deletions snippets/triggers/match/replace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"fullDocument.name": "Alex Smith",
"fullDocumentBeforeChange.name": "Alice Smith"
}
7 changes: 3 additions & 4 deletions snippets/triggers/match/update.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"updateDescription.updatedFields": {
"status": "blocked"
}
}
"updateDescription.removedFields.0.0": "storeItems",
"updateDescription.updateFields.storeLocation.0.0": "East Langley"
}
11 changes: 11 additions & 0 deletions snippets/triggers/project/delete.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"documentKey._id": {
"$numberInt": "1"
},
"operationType": {
"$numberInt": "1"
},
"wallTime": {
"$numberInt": "1"
}
}
14 changes: 14 additions & 0 deletions snippets/triggers/project/insert.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"baseSalary": {
"$numberInt": "0"
},
"department": {
"$numberInt": "1"
},
"documentKey.userName": {
"$numberInt": "1"
},
"operationType": {
"$numberInt": "1"
}
}
11 changes: 11 additions & 0 deletions snippets/triggers/project/replace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"fullDocument.name": {
"$numberInt": "1"
},
"fullDocumentBeforeChange.name": {
"$numberInt": "1"
},
"operationType": {
"$numberInt": "1"
}
}
11 changes: 7 additions & 4 deletions snippets/triggers/project/update.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"updateDescription.updatedFields": {
"status": "blocked"
}
}
"operationType": {
"$numberInt": "1"
},
"updateDescription.updateFields.storeLocation": {
"$numberInt": "1"
}
}

0 comments on commit d604016

Please sign in to comment.