Untitled

 avatar
unknown
plain_text
a year ago
681 B
32
Indexable
[
  {
    /**
     * 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"
    }
  }
]
Editor is loading...
Leave a Comment