here’s my &struct and query :
type Chat struct {
Text string `json:"text"`
Sender string `json:"sender"`
Sentiment string `json:"sentiment"`
}
select text, sender, sentiment from bucket where obj_type = 0 and include_media = false and room_id = '6281383800060-29129' and timestamp > 1563321600
i don’t know why, with my GO SDK (gocb) sometime return expected result and sometime just empty result, but with Couchbase web interface, it’s always return expected result
- i didn’t get any error from
bucket.ExecuteN1qlQuery