DocumentDB unique error does not have keyValue in Error object, generic error shown #4460
Labels
db: mongodb
@payloadcms/db-mongodb
prioritized
status: needs-triage
Possible bug which hasn't been reproduced yet
v2
Link to reproduction
No response
Describe the Bug
The error message for unique field values is not working on Document DB. The keyValue variable is not present within the error object and so the generic error "something went wrong" is shown in production:
When connected to MongoDB:
When connected to DocumentDB:
Used here and here
To Reproduce
Payload Version
2.3.1
Adapters and Plugins
db-mongodb
The text was updated successfully, but these errors were encountered: