Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version Package License NPM Downloads Travis Linux Coverage Gitter Backers on Open Collective Sponsors on Open Collective

Description

Nest framework TypeScript starter repository.

Installation

$ yarn install

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Test

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

Example Querys and mutations

mutation createCompany {
  createCompany(
    input: {
      name: "Listo"
      document: 568141
      description: "Compañia de software"
      phone: "8091231231"
      email: "info@gmail.com"
    }
  ) {
    id
    name
  }
}

query companies {
  companies {
    id
    name
    description
    document
  }
}

query company {
  company(id: "610ee038492ae267604c3a1f") {
    name
  }
}

mutation deletedeleteCompany {
  deleteCompany(id: "610ee038492ae267604c3a1f") {
    name
  }
}