-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Triggering particular function inside afterSave #3268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@srameshr have you tried moving the |
@natanrolnik Sorry, I dont understand how would that help. My point is, is there any way to pass some data from As I have pointed out earlier, I am creating a column called |
@srameshr Yes, there is, and this is the exact reason why the You can do:
And then You can read the docs here for more examples. |
I also recommend reading the JavaScript SDK guide. |
@natanrolnik Tried that. It does not work the way I want. I am trying to set a property on request object in |
Can you post some of your code? |
@natanrolnik Never mind. Setting a column called |
So it's working now? |
Not with the beforeSave method. |
So could you give some extra information? What are you trying, what are the logs you see (when running with |
I will. Give me sometime. Have to run some errands. |
@natanrolnik Here is what I am trying to achieve:
Now the
Now, |
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
How do I trigger a particular function inside
afterSave
for a given collection.As of now I manually set a column called
updateType
and then inside the afterSave block I check for the value ofupdateType
on the request object.Steps to reproduce
Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable.
In Parse.Cloud.define()
In Parse.Cloud.afterSave()
Is there any other way to do this. Any option that lets me choose what block of code should be executed inside
afterSave
after a collection had been saved.Expected Results
NONE
Actual Outcome
NONE
Environment Setup
Server
Database
Logs/Trace
You can turn on additional logging by configuring VERBOSE=1 in your environment.
[FILL THIS OUT]
The text was updated successfully, but these errors were encountered: