Okay, you’re getting there. I think what you want is something more like this:
$w("#dataset1").onReady( () => {
// get the current user's email
wixUsers.currentUser.getEmail()
.then( (email) => {
// set the filter to only show items where "email" field
//matches current user's email
$w("#dataset1").setFilter(
wixData.filter()
.eq("email", email)
)
} );
);