How to do filter dataset in my page, doesn’t work as the example of the wix code: https://www.wix.com/code/reference/wix-data.html#filter
My code is:
import wixData from ‘wix-data’;
import wixUsers from ‘wix-users’;
$w.onReady(function () {
let user = wixUsers.currentUser;
let isLoggedIn = user.loggedIn;
user.getEmail().then( (email) => {
let userEmail = email; // "user@something.com"
console.log("userEmail="+userEmail);
$w("#datasetRVCausaAcao").setFilter( wixData.filter()
.contains("email", userEmail)
);
$w("#datasetRVCausaAcao").refresh();
});
});
How can I work around it?