Skip to content

Commit a6f3223

Browse files
committed
Merge branch 'master' of github.com:anijitsahu/simple-apollo-server-graphql-lambda
2 parents 3e3ec9e + 4f7dd66 commit a6f3223

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,23 @@ However, to call using [GraphQL](https://graphql.org/) API you can use any *supp
8383

8484
API listing is given below, -
8585

86+
**POST** /url-of-the-deployed-lambda/graphql
87+
88+
Following username and password is valid
89+
90+
|Username | Password |
91+
|---|---|
92+
|admin | admin123 |
93+
94+
```javascript
95+
query CreateTokenQuery{
96+
// these are the only possible username and password
97+
createToken(username: "admin", password: "admin123") {
98+
token
99+
}
100+
}
101+
```
102+
86103
**GET** /url-of-the-deployed-lambda/graphql
87104

88105
Following *Queries* use the same URL mentioned above
@@ -189,20 +206,3 @@ mutation UpdateAuthorMutation(
189206
}
190207
}
191208
```
192-
193-
**POST** /url-of-the-deployed-lambda/graphql
194-
195-
Following username and password is valid
196-
197-
|Username | Password |
198-
|---|---|
199-
|admin | admin123 |
200-
201-
```javascript
202-
query CreateTokenQuery{
203-
// these are the only possible username and password
204-
createToken(username: "admin", password: "admin123") {
205-
token
206-
}
207-
}
208-
```

0 commit comments

Comments
 (0)