realms-ai / toptal-nestjs-graphql-medium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nestjs-graphql-medium

Source code for my Medium Article

to run

Run the classical npm install then:

  • npm run start-all

All the three projects will start and you can open http://localhost:3330/graphql to play around

mutation to login

mutation{
  login(loginInput:{username:"foo", password:"bar"}){
    accessToken
  }
}

get the access token and use the next mutation

mutation{
  createTask(createTaskInput:{exampleField:1}){
    exampleField
  }
}

with the Http Header:

{
  "Authorization":"Bearer YOUR_LOGGED_TOKEN_HERE"
}

Cheers

About


Languages

Language:TypeScript 99.4%Language:JavaScript 0.4%Language:Shell 0.1%