Skip to content

Using Loopback with Apache Cassandra #7583

Answered by marioestradarosa
gtamas asked this question in Q&A
Discussion options

You must be logged in to vote

@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[];

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by achrinza
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants