appsmithorg / appsmithorg/appsmith

[Feature]-[170]:[Mongo] Update command in case of failure does not include the error in the response

Đang mở
#7,479 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Backend Enhancement Integrations Product Medium Mongo Needs Triaging Query & JS Pod Query Widgets & IDE Pod Up for grabs
Ngôn ngữ chính
TypeScript
Star
40.9k
Fork
4.8k
Merge trung bình
1 ngày 22 giờ
Pull request đã merge (30 ngày)
45

Mô tả

In case update command fails to execute, it returns {nModified=0}. In such a scenario, we should include the key `writeErrors` in the response to help the user debug.

Sample response returned by mongo in case of error is as follows :
```
Document{{n=0, nModified=0, writeErrors=[Document{{index=0, code=66, errmsg=After applying the update, the (immutable) field '_id' was found to have been altered to _id: ""}}], opTime=Document{{ts=Timestamp{value=7008143878284902402, seconds=1631710650, inc=2}, t=26}}, electionId=7fffffff000000000000001a, ok=1.0, ...
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.