You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@abdonrd As you know, Strapi is compatible with Mongo and SQL databases. By convention, the SQL databases are using the id attribute to identify the entries. However, Mongo is using the _id as the identifier. To make the backend and frontend part uniform we partially implement the duplication of the Mongoo _id attribute.
For example, it avoids us to make this everywhere:
The final solution should to automatically handle this in the strapi-mongoose connector to make sure the _id is duplicated and also saved through the id attribute. The codebase has to work with any databases so we have to make that kind of choices. We know it's not perfect but it's an easy and working solution.
Why the identifiers are duplicated in the database?
_id
&id
.The text was updated successfully, but these errors were encountered: