Querying “Not In” in Couchbase
问题 I have a set of documents in Couchbase where each may have some users as editors - a set of UserID`s in array. Id like to query all the docs where user with particular userid (username) is not in list of editors? here's what my data looks like: document1: {editors[1,2,3,4]} document2: {editors[1,2,3,4,5]} user{id:5} Regarding the data above - how can I query all the docs of type document where user with id=5 is not listed in editors array - meaning only document1 should return? 回答1: I can't