Skip to content

jellodev/nestjs-graphql-template

Repository files navigation

nestjs-graphql-template

Description

  • Nest framework TypeScript starter repository.
  • Graphql
  • JWT

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Test

# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov

QUERY Examples

  • Create access token.
mutation ($accessTokenInput: AccessTokenInput!){
 getAccessToken (accessTokenInput: $accessTokenInput){
   token
   message
  }
}
  • Get current user information.
query {
 user {
   username
   name
   serviceType
  }
}

About

Template for Nestjs GQL (with JWT)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published