this.mapper = new mapping.Mapper(clientInstance, {
models: {
ModelA: {
keyspace: config.get<string>("storage.config.keyspace"),
mappings: new mapping.UnderscoreCqlToCamelCaseMappings(),
tables: ["model_a_table"],
},
ModelB: {
keyspace: config.get<string>("storage.config.keyspace"),
mappings: new mapping.UnderscoreCqlToCamelCaseMappings(),
tables: ["model_b_table"],
},
}
});
this.modelAMapper = this.mapper.forModel("ModelA");
this.modelBMapper = this.mapper.forModel("ModelB");
Error: You must set the Client keyspace or specify the keyspace of the model in the MappingOptions