Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sequelize adapter: Returns an object with undefined _id if idField is not explicitly set #348

Open
Floha258 opened this issue Feb 1, 2023 · 1 comment

Comments

@Floha258
Copy link

Floha258 commented Feb 1, 2023

If you do not explicitly set the idField in a db service's settings, the sequelize adapter (I only know of sequelize doing this, maybe other adapters have the same behavior) returns an object, that has the _id field set explictly to undefined.
Is this wanted or an oversight?

@Floha258 Floha258 changed the title sequelize adapter: Returns an object with undefined _id if not explicitly set sequelize adapter: Returns an object with undefined _id if idField is not explicitly set Feb 1, 2023
@icebob
Copy link
Member

icebob commented Feb 11, 2023

Because the default id field name is id in sequelize adapter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants