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
After starting the server, you can visit http://localhost:1337/playground in your browser to start playing with your GraphQL API.
373
377
374
-
***Note:*** Do ***NOT*** use --mountPlayground option in production.
378
+
***Note:*** Do ***NOT*** use --mountPlayground option in production. [Parse Dashboard](https://github.com/parse-community/parse-dashboard) has a built-in GraphQL Playground and it is the recommended option for production apps.
379
+
380
+
### Using Docker
381
+
382
+
You can also run the Parse GraphQL API inside a Docker container:
After starting the server, you can visit http://localhost:1337/playground in your browser to start playing with your GraphQL API.
393
+
394
+
***Note:*** Do ***NOT*** use --mountPlayground option in production. [Parse Dashboard](https://github.com/parse-community/parse-dashboard) has a built-in GraphQL Playground and it is the recommended option for production apps.
395
+
396
+
### Using Express.js
397
+
398
+
You can also mount the GraphQL API in an Express.js application together with the REST API or solo:
const parseGraphQLServer = new ParseGraphQLServer(
414
+
parseServer,
415
+
{
416
+
graphQLPath: '/graphql',
417
+
playgroundPath: '/playground'
418
+
}
419
+
);
420
+
421
+
app.use('/parse', parseServer.app); // (Optional) Mounts the REST API
422
+
parseGraphQLServer.applyGraphQL(app); // Mounts the GraphQL API
423
+
parseGraphQLServer.applyPlayground(app); // (Optional) Mounts the GraphQL Playground - do NOT use in Production
424
+
425
+
app.listen(1337, function() {
426
+
console.log('REST API running on http://localhost:1337/parse');
427
+
console.log('GraphQL API running on http://localhost:1337/graphql');
428
+
console.log('GraphQL Playground running on http://localhost:1337/playground');
429
+
});
430
+
```
431
+
432
+
After starting the server, you can visit http://localhost:1337/playground in your browser to start playing with your GraphQL API.
433
+
434
+
***Note:*** Do ***NOT*** mount the GraphQL Playground in production. [Parse Dashboard](https://github.com/parse-community/parse-dashboard) has a built-in GraphQL Playground and it is the recommended option for production apps.
375
435
376
436
## Checking the API health
377
437
@@ -495,9 +555,11 @@ You should receive a response similar to this:
495
555
496
556
## Learning more
497
557
498
-
Please look at the right side of your GraphQL Playground. You will see the `DOCS` and `SCHEMA` menus. They are automatically generated by analysing your application schema. Please refer to them and learn more about everything that you can do with your Parse GraphQL API.
558
+
The [Parse GraphQL Guide](http://docs.parseplatform.org/graphql/guide/) is a very good source for learning how to use the Parse GraphQL API.
559
+
560
+
You also have a very powerful tool inside your GraphQL Playground. Please look at the right side of your GraphQL Playground. You will see the `DOCS` and `SCHEMA` menus. They are automatically generated by analyzing your application schema. Please refer to them and learn more about everything that you can do with your Parse GraphQL API.
499
561
500
-
Additionally, the [GraphQL Learn Section](https://graphql.org/learn/) is a very good source to start learning about the power of the GraphQL language.
562
+
Additionally, the [GraphQL Learn Section](https://graphql.org/learn/) is a very good source to learn more about the power of the GraphQL language.
0 commit comments