Closed vgjenks closed 6 years ago
Follow up: Even though the exception occurs, the ORM continues to behave properly, as expected. As ugly as it is; as long as I handle the exception...and ignore it...everything seems fine. My application continues to read and write data, regardless.
It looks like you've defined the UDT by hand and the definition is not present in express-cassandra configuration you are using, hence the error I guess. Express cassandra manages the udt for you using your configuration and you don't need to create them by hand. As you've created them already, you can also just set the udt definition in your express-cassandra config to eliminate the error.
Have a look at the express-cassandra documentation for udt to get the idea to do it.
That's definitely not the case - sorry to omit the configuration. The UDT and tables are both configured. It appears to be a migrations issue because I can catch this error and ignore it, and everything appears to work (except migrations.)
Re-open this issue or should I post a new one?
Ok could you post your configuration here?
Sorry, had already posted a new issue. I believe it has better detail and explanation anyhow. Thanks.
ok then closing this one
Using latest driver w/ Cassandra 3.11. Created the following table and UDT:
Mapping w/ the following object (user_profileModel.js):
Results in the following error:
Strangely enough, if I let express-cassandra generate the keyspace and table, it works...the first time. It's all there. If I restart the app, I get the same error described above. If I remove the "role_permissions" collection from the table/entity, it works just fine. Single UDTs also work just fine - it's only collections of UDTs that do not.