Skip to content

Commit 0a6d8b3

Browse files
pungmeflovilmart
authored andcommitted
docs(CloudCode): adds example usage of isCount in beforeFind (#437)
add isCount check in an example
1 parent 2107cfb commit 0a6d8b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_includes/cloudcode/cloud-code.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ Parse.Cloud.beforeFind('MyObject', function(req) {
336336
let user = req.user; // the user
337337
let triggerName = req.triggerName; // beforeFind
338338
let isMaster = req.master; // if the query is run with masterKey
339+
let isCount = req.count; // if the query is a count operation (available on parse-server 2.4.0 or up)
339340
let logger = req.log; // the logger
340341
let installationId = req.installationId; // The installationId
341342
});

0 commit comments

Comments
 (0)