
Find、Insert、Update、Delete),並指定 Collection Name。{
"_id": "65486728456e79993a150f1c"
}ObjectId 轉換,以比對 ID 字串。
| 類型 | 語法 | 說明 |
|---|---|---|
| Date | ISODate("...") | 日期/時間物件 |
| ObjectId | ObjectId("...") | 唯一文件 ID |
| Decimal | NumberDecimal("...") | 高精度十進位數 |
| Long | NumberLong("...") | 64 位元整數 |
{
"count": "users",
"query": { "active": true }
}