From 1f6beffa6f23edde1241eda1758f9fef224285f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Thu, 1 Sep 2022 10:32:36 +0200 Subject: [PATCH] Create GraphQL-Playground.md --- backend/src/GraphQL-Playground.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 backend/src/GraphQL-Playground.md diff --git a/backend/src/GraphQL-Playground.md b/backend/src/GraphQL-Playground.md new file mode 100644 index 000000000..3381f4e9e --- /dev/null +++ b/backend/src/GraphQL-Playground.md @@ -0,0 +1,28 @@ +# GraphQL Playground + +To use the GraphQL Playground we have to know some basics: + +## How To Login? + +At first we have to have a user of ocelot.social as whom we can login. +The user can be created by seeding the Neo4j database from the backend or by several GraphQL mutations. + +### Seed The Neo4j Database + +In your browser you reach the GraphQL Playground under `http://localhost:4000/` +if the database and the backend is running, see [backend](../../backend/README.md). +You can find how to seed there as well. + +### Use GraphQL Mutations To Create A User + +TODO: Describe how to create a user by GraphQL mutations! + +### Login Via GraphQL + +You can login by sending the query: + +```gql +mutation ($email: String!, $password: String!) { + login(email: $email, password: $password) +} +```