I need to delete specific documents from a cloudant database as illustrated below. All documents are in the Json format:
{
"_id":"abcd",
"_rev":"1_efgh",
"moduleName":"co",
"userid":"knight",
"stateType":"yout"
}
I want to delete all the documents for which the "userid" field does not match any of the values in a list of String values,
say
["userid1", "userid2"]
I am using com.cloudant.client.api.CloudantClient in Springboot.