Skip to content

Commit

Permalink
feat: add a Registration mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinadhiguna committed Mar 8, 2021
1 parent 1539854 commit 83a4408
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/developer-docs/latest/development/plugins/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@ strapi install graphql

Then, start your app and open your browser at [http://localhost:1337/graphql](http://localhost:1337/graphql). You should see the interface (**GraphQL Playground**) that will help you to write GraphQL query to explore your data.

## Registration

Usually you need to sign up or register before being recognized as a user then perform authorized requests.

```graphql
mutation {
register(input: { username: "username", email: "email", password: "password" }) {
jwt
user {
username
email
}
}
}
```

You should see a new user is created in `Users` collection type in your Strapi admin panel.

## Authentication

To perform authorized requests, you must first get a JWT:
Expand Down

0 comments on commit 83a4408

Please sign in to comment.