parse-dashboard 7.3.0-alpha.27 → 7.3.0-alpha.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -79,6 +79,9 @@ Parse Dashboard is a standalone dashboard for managing your [Parse Server](https
|
|
|
79
79
|
- [Limitations](#limitations)
|
|
80
80
|
- [CSV Export](#csv-export)
|
|
81
81
|
- [Views](#views)
|
|
82
|
+
- [Data Sources](#data-sources)
|
|
83
|
+
- [Aggregation Pipeline](#aggregation-pipeline)
|
|
84
|
+
- [Cloud Function](#cloud-function)
|
|
82
85
|
- [View Table](#view-table)
|
|
83
86
|
- [Pointer](#pointer)
|
|
84
87
|
- [Link](#link)
|
|
@@ -1260,11 +1263,38 @@ This feature will take either selected rows or all rows of an individual class a
|
|
|
1260
1263
|
|
|
1261
1264
|
▶️ *Core > Views*
|
|
1262
1265
|
|
|
1263
|
-
Views are saved queries that display
|
|
1266
|
+
Views are saved queries that display data in a table format. Saved views appear in the sidebar, where you can select, edit, or delete them. Optionally you can enable the object counter to show in the sidebar how many items match the view.
|
|
1264
1267
|
|
|
1265
1268
|
> [!Caution]
|
|
1266
1269
|
> Values are generally rendered without sanitization in the resulting data table. If rendered values come from user input or untrusted data, make sure to remove potentially dangerous HTML or JavaScript, to prevent an attacker from injecting malicious code, to exploit vulnerabilities like Cross-Site Scripting (XSS).
|
|
1267
1270
|
|
|
1271
|
+
### Data Sources
|
|
1272
|
+
|
|
1273
|
+
Views can pull their data from the following data sources.
|
|
1274
|
+
|
|
1275
|
+
#### Aggregation Pipeline
|
|
1276
|
+
|
|
1277
|
+
Display aggregated data from your classes using a MongoDB aggregation pipeline. Create a view by selecting a class and defining an aggregation pipeline.
|
|
1278
|
+
|
|
1279
|
+
#### Cloud Function
|
|
1280
|
+
|
|
1281
|
+
Display data returned by a Parse Cloud Function. Create a view specifying a Cloud Function that returns an array of objects. Cloud Functions enable custom business logic, computed fields, and complex data transformations.
|
|
1282
|
+
|
|
1283
|
+
Cloud Function views can prompt users for text input and/or file upload when opened. Enable "Require text input" or "Require file upload" checkboxes when creating the view. The user provided data will then be available in the Cloud Function as parameters.
|
|
1284
|
+
|
|
1285
|
+
Cloud Function example:
|
|
1286
|
+
|
|
1287
|
+
```js
|
|
1288
|
+
Parse.Cloud.define("myViewFunction", request => {
|
|
1289
|
+
const text = request.params.text;
|
|
1290
|
+
const fileData = request.params.fileData;
|
|
1291
|
+
return processDataWithTextAndFile(text, fileData);
|
|
1292
|
+
});
|
|
1293
|
+
```
|
|
1294
|
+
|
|
1295
|
+
> [!Note]
|
|
1296
|
+
> Text and file data are ephemeral and only available to the Cloud Function during that request. Files are base64 encoded, increasing the data during transfer by ~33%.
|
|
1297
|
+
|
|
1268
1298
|
### View Table
|
|
1269
1299
|
|
|
1270
1300
|
When designing the aggregation pipeline, consider that some values are rendered specially in the output table.
|