A sample application using GraphQL + NestJS + PostgreSQL.
This is a example of a graphQL API with NestJS and MongoDB. With this code you'll be able to make QUERYs and MUTATIONs operations.
- Node - JS runtime environment
- NestJS - NodeJS Framework
- VSCode - IDE
- Docker - Containers solution
- Postman - API Testing (optional)
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
mutation CreateCustomer {
createCustomer (
name: "Jane Doe"
email: "[email protected]"
phone: "+555199999-9999"
address: "rua xpto, número 666. Bairro Proibido"
) {
name
id
}
}
query {
customers {
name
phone
}
}
If you find trouble to have some fun with this code feel confortable to open a new ISSUE
.
But if you find it and know how to solve, please open a PULL REQUEST
.