I have the query below and this query receives an array called [ ]callActions. This query is not working because I’m passing an array in the QueryOptions, do you know how can I use the clause IN and the QueryOptions together? Is it possible?
query := SELECT bs.id, bs.name, bs.variables FROM mappings_bs bs where bs.id IN [$1]
opts := &gocb.QueryOptions{PositionalParameters: [ ]interface{}{callActions}}
res, err := c.Bucket.Scope(test).Query(query, opts)