You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/common/errors.md
-2
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,6 @@ The following is a list of all the error codes that can be returned by the Parse
32
32
|`ScriptFailed`| 141 | Cloud Code script failed. Usually points to a JavaScript error. Check error message for more details. |
33
33
|`FunctionNotFound`| 141 | Cloud function not found. Check that the specified Cloud function is present in your Cloud Code script and has been deployed. |
34
34
|`JobNotFound`| 141 | Background job not found. Check that the specified job is present in your Cloud Code script and has been deployed. |
35
-
|`SuccessErrorNotCalled`| 141 | success/error was not called. A cloud function will return once response.success() or response.error() is called. A background job will similarly finish execution once status.success() or status.error() is called. If a function or job never reaches either of the success/error methods, this error will be returned. This may happen when a function does not handle an error response correctly, preventing code execution from reaching the success() method call. |
36
-
|`MultupleSuccessErrorCalls`| 141 | Can't call success/error multiple times. A cloud function will return once response.success() or response.error() is called. A background job will similarly finish execution once status.success() or status.error() is called. If a function or job calls success() and/or error() more than once in a single execution path, this error will be returned. |
Copy file name to clipboardExpand all lines: _includes/common/performance.md
+9-14
Original file line number
Diff line number
Diff line change
@@ -1008,19 +1008,15 @@ You can use this to offload processing to the Parse servers thus increasing your
1008
1008
We saw examples of limiting the data returned by writing restrictive queries. You can also use [Cloud Functions]({{ site.baseUrl }}/cloudcode/guide/#cloud-functions) to help limit the amount of data returned to your app. In the following example, we use a Cloud Function to get a movie's average rating:
Copy file name to clipboardExpand all lines: _includes/common/security.md
+5-13
Original file line number
Diff line number
Diff line change
@@ -516,12 +516,10 @@ One particularly common use case for Cloud Code is preventing invalid data from
516
516
To create validation functions, Cloud Code allows you to implement a `beforeSave` trigger for your class. These triggers are run whenever an object is saved, and allow you to modify the object or completely reject a save. For example, this is how you create a [Cloud Code beforeSave trigger]({{ site.baseUrl }}/cloudcode/guide/#beforesave-triggers) to make sure every user has an email address set:
Copy file name to clipboardExpand all lines: _includes/common/sessions.md
+9-7
Original file line number
Diff line number
Diff line change
@@ -301,13 +301,15 @@ Restricted sessions are prohibited from creating, modifying, or deleting any dat
301
301
If you want to prevent restricted Sessions from modifying classes other than `User`, `Session`, or `Role`, you can write a Cloud Code `beforeSave` handler for that class:
You can configure Class-Level Permissions (CLPs) for the Session class just like other classes on Parse. CLPs restrict reading/writing of sessions via the `Session` API, but do not restrict Parse Server's automatic session creation/deletion when users log in, sign up, and log out. We recommend that you disable all CLPs not needed by your app. Here are some common use cases for Session CLPs:
Copy file name to clipboardExpand all lines: _includes/rest/sessions.md
+9-7
Original file line number
Diff line number
Diff line change
@@ -286,13 +286,15 @@ Restricted sessions are prohibited from creating, modifying, or deleting any dat
286
286
If you want to prevent restricted Sessions from modifying classes other than `User`, `Session`, or `Role`, you can write a Cloud Code `beforeSave` handler for that class:
0 commit comments