我怎么能用单引号 (') 而不是双引号 (") 在 vert.x 中生成 mongodb 聚合?

how could i put single quote (') instead of double(") to make a mongodb aggregate in vert.x?

我正在尝试使用 vertx runCommand 执行此 mongo 聚合:

"$group" : {
  "_id" : '$code_barque',
  "date_e" : {
    "$first" : '$date_e'
  },
  "nom_nav" : {
    "$first" : '$nom_nav'
  },
  "code_b" : {
    "$first" : '$code_b'
  },
  "position" : {
    "$first" : '$position'
  },
  "date_pos" : {
    "$first" : '$date_pos'
  }
}

问题是,如何在我的 JsonObject 查询中使用单引号 ('$date_e' , '$nom_nav' , ...) ?

感谢您的宝贵时间。

我发现了一个问题,谢谢;问题出在我的查询中。