I need to hide certain records from users based on onChain data.
Is there maybe a way to use a function to hide certain records on a read operation?
I see that there’s Moralis.Cloud.beforeSave() and one for Delete, but is there something like that for Read operations?
I don’t know of a hook on read operation.
You could use a cloud function where you could check if the user is allowed to see or not the contents of the database.
That would be instead of Object, right?
I mean, before returning data in front end, you can query a cloud function where you can check what data to return in that cloud function