const userKeywords=['coding','music']
const resKeywords = await payload.update({
collection: "keywords",
where: {
keyword:{ in:userKeywords },
},
data: {
$inc:{weight:1}
},
});
console.log(resKeywords)
That type of operation is not supported by the API
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.