dcsan / ts-mern

typescript mern stack
2 stars 0 forks source link

add extra property to schema and Interface #4

Open dcsan opened 5 years ago

dcsan commented 5 years ago

example, adding a 'vegetarian' field

dcsan commented 5 years ago

note you can see the two places to update a mongoose Schema and the TS Interface when modifying a model in this commit:

https://github.com/dcsan/ts-mern/commit/fc8d4bf7fbf53fc489e4b6781320e1bcad7e79b5

dcsan commented 5 years ago

https://www.youtube.com/watch?v=Z_tmYFlrPnI&feature=youtu.be