我正在嘗試使用 Golang 查詢 MongoDB 數據庫c.Pipe,但響應始終為空,盡管我有諸如("name": "test case ( parenthesis )")數據庫之類的項目。pipe := c.Pipe([]bson.M{{"$match": bson.M{"name":"("}}})resp := []bson.M{}err := pipe.All(&resp)if err != nil { //handle error}fmt.Println(resp) // Empty resp
- 1 回答
- 0 關注
- 150 瀏覽
添加回答
舉報
0/150
提交
取消