@percussionconservato I think I understand and you may be going about this backwards.
First to get the currently loggedin member, you will need to do this in your onready function
import { currentMember } from 'wix-members';
const options = {
fieldsets: ['FULL']
}
$w.onReady(async function () {
const loggedInMember = await currentMember.getMember(options);
}
This will only ever give you the id of the logged in member that is visiting that page
You can then pass this member ID to your query something like this (untested by me so play around if it’s not quite right but what you are doing is saying pull all forum posts where ownerID = logged in user AND likes are over 50
wixData.query("Forum/Posts")
.eq("OwnerId","loggedInMemberID")
.gt("likeCount", 50)
.find()
.then((results) => {
If this query of your forum posts comes back with nothing, then your currently logged in member does not have any posts with likes over 50.
If the query comes back with posts, then you can send that single member id to the backend.
Will that work for your use case?