A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Estrutura básica
- CRUD
URL http://localhost:3000/graphql
query {
chamados {
_id
descricao
status
ticketKey
data_criacao
data_atualizacao
}
}
mutation {
createChamado(createChamadoInput:{
descricao: "teste3"
ticketKey: "1234e"
status: "ativo"
}) {
_id
descricao
data_criacao
data_atualizacao
status
}
}
mutation {
updateChamado(updateChamadoInput:{
_id: "6264a0537d5d986153dc564b"
,
descricao: "update teste3 e"
ticketKey: "update 1234e d"
status: "inativo"
}
) {
_id
descricao
ticketKey
data_criacao
data_atualizacao
status
}
}
https://docs.nestjs.com/techniques/mongodb
Nest is MIT licensed.