Skip to content

How can I create an entity? #2472

Closed Answered by olivermrbl
hieutv199x asked this question in Q&A
Discussion options

You must be logged in to vote

The create command from Typeorm generates empty migrations, so this is expected. We recommend you write your own queries within these migrations to ensure you achieve exactly what you are aiming for.

That being said, you can let Typeorm generate migrations for you by running their generate command. Though, it requires additional configuration steps including setting up a DataSource. You can read more about it in their documentation here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SELO77
Comment options

Answer selected by olivermrbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants