From 4d02e57cf94602684191b0545548519f7813488a Mon Sep 17 00:00:00 2001 From: dblythy Date: Thu, 8 Apr 2021 02:32:45 +1000 Subject: [PATCH] Add afterFind Considerations (#821) * add afterFind considerations * Update cloud-code.md --- _includes/cloudcode/cloud-code.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_includes/cloudcode/cloud-code.md b/_includes/cloudcode/cloud-code.md index eba5519fa..f15569609 100644 --- a/_includes/cloudcode/cloud-code.md +++ b/_includes/cloudcode/cloud-code.md @@ -672,6 +672,9 @@ Parse.Cloud.afterFind(Parse.User, async (request) => { }) ``` +### Some considerations to be aware of +- If you use the `masterKey` to fetch a pointer in an `afterFind` trigger, it will be sent in full to the client. Prior to returning to the client, be sure to check that the returned objects and pointers do not contain information that the client should not be able to access + # Session Triggers ## beforeLogin