Hello,
I have a baisc User -> Products relationship in my app. Already created some records manually. For the front end I’m using js sdk and have the user logged already logged in.
Is there a way to automatically get only the products of my logged user without querying them from the front end?
To get the products I’m using:
let Product = Parse.Object.extend("Product");
let productsQuery = new Parse.Query(Product);
productsQuery
.find()
.then((response) => {
// process the response
})
.catch((error) => {
console.log(error);
});
I know I could add an equalTo() constrain but I feel a better approach would be to filter the products from backend and not front end.