Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mutation {
- login(username:"admin", password:"nooneknows") {
- token
- user { id }
- }
- }
- # output
- {
- "data": {
- "login": {
- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjamc0Mnd1cnYwMDFmMDkyMHppNG5hb3R2IiwiaWF0IjoxNTIzOTk1NDM5fQ.XbQ_ZhnVwP4rtBse9RgbIgSYlOr4Jw-IKXhqJ1fcq8U",
- "user": {
- "id": "cjg42wurv001f0920zi4naotv"
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment