-
Type: Question
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: Laravel
kbiits has created Issue #3184: [Feature Request] Options to ignore auto conversion id to _id in laravel-mongodb. This Jira ticket was filed by GromNaN
Issue Text:
Is your feature request related to a problem?
We have a `merchant.id` field in our mongodb document, and after upgrading to mongodb driver 5.1 we encountered issue that mongodb driver modify the where query from `merchant.id` to `merchant._id` which results to unexpected query
Describe the solution you'd like
It would be good if there's mechanism to whitelisting the fields from auto conversion `.id` to `._id`
Describe alternatives you've considered
-
Additional context
This part of code modify all `.id` to `._id`
<img width="931" alt="image" src="https://github.com/user-attachments/assets/c4aba8a0-aa18-4098-96e7-2134b6eed26b">