So, the case is you have a project and you want to update the schema of a table. You can do it easily with an update(plain cql or using express-cassandra).
The schema before looks like this in 'models/testModel'.
But if I add a property e.g. weight It gets updated correctly and result true is appearing in the console.
The issue is that now there is a mismatch between the testModel and the actual schema so the next time the app restarts it produces an error.
So, the case is you have a project and you want to update the schema of a table. You can do it easily with an update(plain cql or using express-cassandra).
The schema before looks like this in 'models/testModel'.
testModel.js
And the file where all the db functions are stored:
db.js
But if I add a property e.g. weight It gets updated correctly and result true is appearing in the console. The issue is that now there is a mismatch between the testModel and the actual schema so the next time the app restarts it produces an error.
Is there any workaround for this issue?