Skip to content

carlosguadir/nest-graphql-directive

Repository files navigation

Description

Small example GraphQL directives in NestJS

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

Local validation

Navigate to

(http://localhost:3000/api)[http://localhost:3000/api]

query sweetData {
  sweetData( where: { uuid: "Hola" }) {
    id firstName
  }
}

mutation createSweetData {
  createSweetData {
    id lastName
  }
}

About

A quick example of NestJS and GraphQL directives

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published