Using Loopback with Apache Cassandra #7583
|
Hi I'm using the LB4 with latest Cassandra connector and Cassandra 3.x It mostly works so far, but I've got a couple of questipns:
But Cassandra just creates this as simple text type. Same thing happens if try to use any of the Cassandra types supported by loopback (uuid, timeuuid, tuple). All I get is a text field. Is this supposed to work? If not, is there a better connector for LB4? The official one seems to be working, but it's kinda old. Last commit was ages ago. Is this still officially maintained by LB team / Strongloop? Thanks in advance |
Answered by
marioestradarosa
Jun 14, 2021
Replies: 2 comments
|
@gtamas , maybe you need to hint cassandra connector about the real type like so: @property.array(String, {
default: [],
cassandra: {
dataType: 'List<Text>'
},
jsonSchema: {
uniqueItems: true,
errorMessage: 'An array of file URLs is expected',
},
})
attachments?: string[]; |
0 replies
Answer selected by
achrinza
|
thanks it worked perfectly! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@gtamas , maybe you need to hint cassandra connector about the real type like so: