Chaining two or more eq in setFilter

If I use the below code it throws an error.
Error: Failed to build a filter. Invalid $eq usage. $eq requires two operands.

$w("#UserPluginActions").setFilter(filter()
				.eq("userId",userID)
				.eq("pluginId",pluginItem.id)
				
			).then(() => {

The userID contains a value which is in the collection, checked.
The pluginItem.id also contains the correct value and is in the collection, checked.

It is strange right?

Hey Andreas,

I got this to work. Here’s what my code looked like, modified to fit your data:

import {wixData} from 'wix-data';
$w.onReady(function () {	
	$w("#UserPluginActions").onReady(() => {
		$w("#UserPluginActions").setFilter(wixData.filter()
			.eq("userId",userID)
			.eq("pluginId",pluginItem.id)
		)
		.then(() => {
  			console.log("Dataset is now filtered");
		})
		.catch((err) => {
  			console.log(err);
		});
	});
});

Hope this helps.