Skip to content

Question: Mapping JSON to Model Entity? #113

@sharryheb

Description

@sharryheb

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. :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions