In a couchbase document how can we Check whether given value available in an array

In a couchbase document how can we Check whether given value available in an array?

 

#couchbase

Asked on July 16, 2019 in Databases.
Add Comment
1 Answer(s)

There are several ways to check
use in ARRAY_CONTAINS
Ex: let users filed is an array
Select * from bucketname where docType = ‘’ and ARRAY_CONTAINS(users, your value)

Answered on July 16, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.