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

Question: Mapping JSON to Model Entity? #113

Open
sharryheb opened this issue Oct 18, 2019 · 0 comments
Open

Question: Mapping JSON to Model Entity? #113

sharryheb opened this issue Oct 18, 2019 · 0 comments

Comments

@sharryheb
Copy link

Hello,

I didn't know where else to go to ask this question. :-) I have a JSON file with data in it, where the column names are like so:
propA: foo,
propB: bar,
propC: something

However, in the database, and thus the models, the column names are like so:
propD
propE
propF

Is there a way to tell sequelize-fixtures some kind of mapping to use on import/load of the data file, something like this:
propA -> propD
propB -> propE
propC -> propF

?? I couldn't find anything specific in the ReadMe, but maybe there's something I don't understand that's already there. :-)

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

1 participant