Hi,
I have a UDT column where I am using the UnderscoreSqlToCamelCaseMapping to convert it to correct column names.
The mappings works correctly on the column names but has issues converting the UDT keys to underscore.
Mapper config:
this.mapper = new Cassandra.mapping.Mapper(this.client, {
models: {
'Posts': {
tables: ['account_posts'],
mappings: new UnderscoreCqlToCamelCaseMappings()
},
...}
The data I wanted to store looks something like:
{
"postsData":[
{
"postUrl":"url",
"postedOn":123432
}
]
}
The data for the same column in cassandra looks like [{"post_url":null,"posted_on":null}]
The mappers works correctly if the values for the column are anything but UDT's.
I couldn't find any specific config for UDT mappers or any examples online for the same.
Any help is appreciated.
Thanks,
Rohan