Untitled

mail@pastecode.io avatar
unknown
plain_text
12 days ago
681 B
1
Indexable
Never
[
  {
    /**
     * query: The query in MQL.
     */
    $match: {
      externalDocumentNo_: {
        $in: ["203184238"]
      }
    }
  },
  {
    /**
     * field: The field name
     * expression: The expression.
     */
    $set: {
      ediUpdatedDate: "2023-12-18T10:03:37.720"
    }
  },
  {
    /**
     * into: The target collection.
     * on: Fields to  identify.
     * let: Defined variables.
     * whenMatched: Action for matching docs.
     * whenNotMatched: Action for non-matching docs.
     */
    $merge: {
      into: "orderStatus",
      on: "_id",
      whenMatched: "replace",
      whenNotMatched: "insert"
    }
  }
]
Leave a Comment