Limit the Parse.User.current data

Is there a way to limit the data stored in local storage in Parse.User.current when logged in , same as using select for Query functions.

Yes you can use beforeFind trigger for manage this

Thanks for your answer but can you provide me a more detailed answer as I’m new to parse.

Thanks in advance,

You can use exclude

An array of keys to exclude in the result.

Example:


Parse.Cloud.beforeFind(Parse.User, async (req) => {
  
        req.query.exclude('area',’level’);
    
});

1 Like