Open kbiits opened 6 days ago
I am looking for the solution here
**protected $primaryKey = '_id';**
I tried to put above line in model that is not working as well
if we want to go with _id there must a be
please guide.
I am looking for the solution here
What I've done to get rid of the issue is by downgrading the MongoDB driver to version 4.x
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 frommerchant.id
tomerchant._id
which results to unexpected queryDescribe 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