问题描述:

In some cloud code, I use a Parse.Cloud.beforeSave method.

I want to use this method only for a specific class named "mySpecialClass".

I tried code syntax like:

Parse.Cloud.beforeSave("mySpecialClass", function(request, response)

and:

Parse.Cloud.beforeSave(mySpecialClass, function(request, response)

But in both case the method gets run for any class and this is not what I want.

What should I do to have my Parse.Cloud.beforeSave method run only for for mySpecialClass and leave alone the other classes?

相关阅读:
Top