如何在 mongo db 中发送“$”作为值?

问题描述 投票:0回答:0
                case: { $gte: [ "$AMOUNT", 1000000 ] },
                then: {
                    value: { $round: [ { $divide: [ "$AMOUNT", 1000000 ] }, 2 ] },
                    decimals: 2,
                    prefix: "$",
                    suffix: "m"
                }
            },

我想发送“$”作为前缀中的值,但它给出了一个错误。

javascript node.js mongodb web aggregate-functions
© www.soinside.com 2019 - 2024. All rights reserved.