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: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -398,6 +398,31 @@ You can specify scripts to execute Cloud Functions with the `scripts` option:
398
398
]
399
399
```
400
400
401
+
You can also specify custom fields with the `scrips` option:
402
+
403
+
```json
404
+
"apps": [
405
+
{
406
+
"scripts": [
407
+
{
408
+
"title": "Delete account",
409
+
"classes": [
410
+
{
411
+
"name": "_User",
412
+
"fields": [
413
+
{ "name": "createdAt", "validator": "value => value > new Date(\"2025\")" }
414
+
]
415
+
}
416
+
],
417
+
"cloudCodeFunction": "deleteAccount"
418
+
}
419
+
]
420
+
}
421
+
]
422
+
423
+
```
424
+
425
+
401
426
Next, define the Cloud Function in Parse Server that will be called. The object that has been selected in the data browser will be made available as a request parameter:
0 commit comments