为什么 Mongodb 不会自动创建“id”,以及如何禁用它

问题描述 投票:0回答:1
{
  "_id": {
    "$oid": "65ea05dbaa907e05219c0934"
  },
  "id": 6,
  "title": "asd",
  "content": "asd",
  "author": "asd",
  "category": "asd",
  "createdAt": {
    "$date": "2024-03-07T20:21:52.000Z"
  }
}

我在互联网和gpt上找不到问题的答案

django mongodb djongo
1个回答
0
投票

请分享有关如何创建此记录的更多详细信息。

© www.soinside.com 2019 - 2024. All rights reserved.