Closed shatayuD closed 5 years ago
Same thing is happening while updating the model.
Looks like you are passing the uuid as a string. You need to use the uuid datatype instead. If you want to convert a string uuid to uuid type, then you can use the models.uuidFromString(your_string_uuid)
. To get details about datatypes and javascript to cassandra type conversions, have a look at the docs:
https://express-cassandra.readthedocs.io/en/stable/datatypes/
thank you so much. I've used it and this is working fine now
I'm using latest i.e. 2.2.3 version. I tried to query with partition key uuid. I'm just returning promise here to caller method
But got exception as
I also referred to question on stackoverflow and also checked bug but not working for me But I dont want to index the other fields as of now CustomerModel.js is as follows :
Kindly help me to sort this out. is it that id is queried with quotes to cassandra for uuid field ? Please guide me how to solve this issue. Also I'm not saving it like shown here, I have id from where I want to find the model.