首页 文章
  • 1 votes
     answers
     views

    MongoDB - 仅在upsert上添加addToSet / push

    我想在数组中添加一个子文档(如果它尚不存在),然后在一个查询中返回新添加的子文档(或至少是子文档数组) . 这是一个示例文档结构: { "name": "John Smith", "folders": [ { "folderName": "Breweri...

热门问题