When table field name is sub string of primarykey field name and its not set then it's throwing unset primary key error.
consider table name is myinfo where firstname is primarykey and name is field of same table.
Table myinfo :
(
firstname text PRIMARY KEY,
name text
)
CASE 1 [Success] :
input:
{
firstname: 'primarykeyFieldtext',
name: 'github'
}
when both field firstname and name is set then query executed successfully
CASE 2 [ERROR] :
input:
{
firstname: 'primarykeyFieldtext'
}
when name field is not set then its throwing "unset primary key" while its just a table field attribute , not a primary key.
ERROR : apollo.model.save.unsetkey: Primary Key Field: name must have a value
NOTE:
I tried express cassandra with lower version also, getting the same error.
When table field name is sub string of primarykey field name and its not set then it's throwing unset primary key error.
consider table name is myinfo where firstname is primarykey and name is field of same table. Table myinfo : ( firstname text PRIMARY KEY, name text )
CASE 1 [Success] : input: { firstname: 'primarykeyFieldtext', name: 'github' } when both field firstname and name is set then query executed successfully
CASE 2 [ERROR] : input: { firstname: 'primarykeyFieldtext' } when name field is not set then its throwing "unset primary key" while its just a table field attribute , not a primary key. ERROR : apollo.model.save.unsetkey: Primary Key Field: name must have a value
NOTE: I tried express cassandra with lower version also, getting the same error.
cassandrSampleProject.zip