Mongo support
See original GitHub issueMongo database by default uses primary identifiers named _id
.
I am trying to use with Mongo and still not checked all the use cases yet but already have something to implement. Inference elements form values do not expect _id
field (only id
).
Please take a look at this. Simple test in previous commit.
I will add something else when it will be required in next use case. Give me some feedback.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
MongoDB Support Hub
With enterprise-grade support from MongoDB, you get access to a technical support experience that is engaged, authoritative, and comprehensive.
Read more >Technical Support — MongoDB Manual
For technical support questions, please log into your MongoDB Cloud account and ...
Read more >Contact Us - MongoDB
Have a general question? ; United States, +1 844-666-4632 ; Europe, the Middle East, and Africa, +44 203 930 0584 ; Australia &...
Read more >MongoDB Support Policies
Whichever MongoDB product you're using, find the support policy quickly and easily.
Read more >Technical Support — MongoDB Manual
For technical support questions, please log into your MongoDB Cloud account and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’d have to agree with the others regarding
_id
, sincemongodb
standard is_id
(and most all other apps use_id
). When would anyone actually useid
instead of_id
outside a simple json file? Even then, the average person would still use_id
in almost all cases involving json if you’re even considering using a proper db.Feels strange to, by default, use the opposite of what is standard? It’s not like the docs/tutorial uses SQL. As long as the docs/tutorial focuses on json (which leans to Mongo), this should be changed to
_id
or it’s wildly unexpected.That’s already documented in the FAQ: https://marmelab.com/react-admin/FAQ.html#can-i-have-custom-identifiersprimary-keys-for-my-resources