Small example GraphQL directives in NestJS
$ yarn install
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov
Navigate to
(http://localhost:3000/api)[http://localhost:3000/api]
query sweetData {
sweetData( where: { uuid: "Hola" }) {
id firstName
}
}
mutation createSweetData {
createSweetData {
id lastName
}
}