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
***Note:****If you want to use [Cloud Code](https://docs.parseplatform.org/cloudcode/guide/) feature, please add `-v cloud-code-vol:/parse-server/cloud --cloud /parse-server/cloud/main.js` to command above. Make sure the `main.js`file is available in the `cloud-code-vol` directory before run this command. Otherwise, an error will occur.*
158
+
***Note:****If you want to use [Cloud Code](https://docs.parseplatform.org/cloudcode/guide/), add `-v cloud-code-vol:/parse-server/cloud --cloud /parse-server/cloud/main.js` to the command above. Make sure `main.js` is in the `cloud-code-vol` directory before starting Parse Server.*
159
159
160
160
You can use any arbitrary string as your application id and master key. These will be used by your clients to authenticate with the Parse Server.
161
161
@@ -432,7 +432,7 @@ For the full list of configurable environment variables, run `parse-server --hel
432
432
433
433
## Available Adapters
434
434
435
-
All official adapters are distributed as scoped pacakges on [npm (@parse)](https://www.npmjs.com/search?q=scope%3Aparse).
435
+
All official adapters are distributed as scoped packages on [npm (@parse)](https://www.npmjs.com/search?q=scope%3Aparse).
436
436
437
437
Some well maintained adapters are also available on the [Parse Server Modules](https://github.com/parse-server-modules) organization.
438
438
@@ -452,9 +452,9 @@ Parse Server allows developers to choose from several options when hosting files
452
452
453
453
**Caution, this is an experimental feature that may not be appropriate for production.**
454
454
455
-
This feature deduplicates identical requests that are received by Parse Server mutliple times, typically due to network issues or network adapter access restrictions on mobile operating systems.
455
+
This feature deduplicates identical requests that are received by Parse Server multiple times, typically due to network issues or network adapter access restrictions on mobile operating systems.
456
456
457
-
Identical requests are identified by their request header `X-Parse-Request-Id`. Therefore a client request has to include this header for deduplication to be applied. Requests that do not contain this header cannot be deduplicated and are processed normally by Parse Server. This means rolling out this feature to clients is seamless as Parse Server still processes request without this header when this feature is enbabled.
457
+
Identical requests are identified by their request header `X-Parse-Request-Id`. Therefore a client request has to include this header for deduplication to be applied. Requests that do not contain this header cannot be deduplicated and are processed normally by Parse Server. This means rolling out this feature to clients is seamless as Parse Server still processes requests without this header when this feature is enabled.
458
458
459
459
> This feature needs to be enabled on the client side to send the header and on the server to process the header. Refer to the specific Parse SDK docs to see whether the feature is supported yet.
460
460
@@ -474,7 +474,7 @@ let api = new ParseServer({
474
474
| Parameter | Optional | Type | Default value | Example values | Environment variable | Description |
|`idempotencyOptions`| yes |`Object`|`undefined`|| PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_OPTIONS | Setting this enables idempotency enforcement for the specified paths. |
477
-
|`idempotencyOptions.paths`| yes |`Array<String>`|`[]`|`.*` (all paths, includes the examples below), <br>`functions/.*` (all functions), <br>`jobs/.*` (all jobs), <br>`classes/.*` (all classes), <br>`functions/.*` (all functions), <br>`users` (user creation / update), <br>`installations` (installation creation / update) | PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_PATHS | An array of path patterns that have to match the request path for request deduplication to be enabled. The mount path must not be included, for example to match the request path `/parse/functions/myFunction`specifiy the path pattern `functions/myFunction`. A trailing slash of the request path is ignored, for example the path pattern `functions/myFunction` matches both `/parse/functions/myFunction` and `/parse/functions/myFunction/`. |
477
+
|`idempotencyOptions.paths`| yes |`Array<String>`|`[]`|`.*` (all paths, includes the examples below), <br>`functions/.*` (all functions), <br>`jobs/.*` (all jobs), <br>`classes/.*` (all classes), <br>`functions/.*` (all functions), <br>`users` (user creation / update), <br>`installations` (installation creation / update) | PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_PATHS | An array of path patterns that have to match the request path for request deduplication to be enabled. The mount path must not be included, for example to match the request path `/parse/functions/myFunction`specify the path pattern `functions/myFunction`. A trailing slash of the request path is ignored, for example the path pattern `functions/myFunction` matches both `/parse/functions/myFunction` and `/parse/functions/myFunction/`. |
478
478
|`idempotencyOptions.ttl`| yes |`Integer`|`300`|`60` (60 seconds) | PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_TTL | The duration in seconds after which a request record is discarded from the database. Duplicate requests due to network issues can be expected to arrive within milliseconds up to several seconds. This value must be greater than `0`. |
479
479
480
480
### Notes <!-- omit in toc -->
@@ -554,7 +554,7 @@ Pros:
554
554
- All files are complete in their content and can be easily opened and previewed by viewing the file in a browser.
555
555
556
556
Cons:
557
-
- In most cases, a localized page differs only slighly from the default page, which could cause a lot of duplicate code that is difficult to maintain.
557
+
- In most cases, a localized page differs only slightly from the default page, which could cause a lot of duplicate code that is difficult to maintain.
558
558
559
559
#### Localization with JSON Resource
560
560
@@ -564,7 +564,7 @@ Pages are localized by adding placeholders in the HTML files and providing a JSO
564
564
```js
565
565
root/
566
566
├── public/// pages base path
567
-
│ ├── example.html// the page containg placeholders
567
+
│ ├── example.html// the page containing placeholders
568
568
├── private/// folder outside of public scope
569
569
│ └── translations.json// JSON resource file
570
570
```
@@ -689,7 +689,7 @@ Logs are also viewable in Parse Dashboard.
689
689
690
690
**Want to log each request and response?** Set the `VERBOSE` environment variable when starting `parse-server`. Usage :- `VERBOSE='1' parse-server --appId APPLICATION_ID--masterKey MASTER_KEY`
691
691
692
-
**Want logs to be in placed in a different folder?** Pass the `PARSE_SERVER_LOGS_FOLDER` environment variable when starting `parse-server`. Usage :- `PARSE_SERVER_LOGS_FOLDER='<path-to-logs-folder>' parse-server --appId APPLICATION_ID--masterKey MASTER_KEY`
692
+
**Want logs to be placed in a different folder?** Pass the `PARSE_SERVER_LOGS_FOLDER` environment variable when starting `parse-server`. Usage :- `PARSE_SERVER_LOGS_FOLDER='<path-to-logs-folder>' parse-server --appId APPLICATION_ID--masterKey MASTER_KEY`
693
693
694
694
**Want to log specific levels?** Pass the `logLevel` parameter when starting `parse-server`. Usage :- `parse-server --appId APPLICATION_ID--masterKey MASTER_KEY--logLevel LOG_LEVEL`
***Note:*** *If you want to use [Cloud Code](https://docs.parseplatform.org/cloudcode/guide/) feature, please add `-v cloud-code-vol:/parse-server/cloud --cloud /parse-server/cloud/main.js` to command above. Make sure the `main.js`file is available in the `cloud-code-vol` directory before run this command. Otherwise, an error will occur.*
741
+
***Note:*** *If you want to use [Cloud Code](https://docs.parseplatform.org/cloudcode/guide/), add `-v cloud-code-vol:/parse-server/cloud --cloud /parse-server/cloud/main.js` to the command above. Make sure `main.js` is in the `cloud-code-vol` directory before starting Parse Server.*
742
742
743
743
After starting the server, you can visit http://localhost:1337/playground in your browser to start playing with your GraphQL API.
0 commit comments