nestjs-rest-and-graphql-api
nestjs-rest-and-graphql-api copied to clipboard
This is a little example of how to use nest.js creating a REST and GraphQL API using Type-GraphQL.
Description
This is a little example of how to use nest.js creating a REST and GraphQL API using Type-GraphQL.
Tips
Generate new module:
-
nest g module MODULE_NAME
-
nest g controller CONTROLLER_NAME # This is for REST api
-
nest g service SERVICE_NAME
-
nest g resolver RESOLVER_NAME # This is for GraphQL api
Update all the packages:
yarn upgrade-interactive --latest