Hi, in Cassandra I can query with format:
SELECT * FROM drive_file WHERE drive_file_index = '{
query: {type: "wildcard", field: "name", value: "*packaging*"}}'
) LIMIT 100;
However, when I use gocql, I cannot perform this query as:
iterable := Session.Query(`SELECT * FROM drive_file WHERE expr(drive_file_index, ?) LIMIT 10`, `{query: {type: "wildcard", field: "name", value: "*packaging*"}}`).Iter()
Please help me to solve this issue.
Many thanks.
Tuan Anh.