1.1.3 • Published 1 year ago

nestjs-query v1.1.3

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Test codecov Known Vulnerabilities

nestjs-query

Nestjs-Query is collection of packages to make crud for graphql easier.

Why?

While working on projects in nestjs it was very easy to get up and running with graphql however, there were many patterns that were common between the resolvers. In particular querying, sorting and paging.

Installation

Install Guide.

Docs

Packages

Nestjs-query is composed of multiple packages

  • @vizorous/nestjs-query-core - Defines all interfaces and utility types implemented by the other packages.
  • @vizorous/nestjs-query-graphql - Package that provides the graphql resolver and decorators for crud endpoints.
  • @vizorous/nestjs-query-mongoose - Package that implements a Mongoose service that can be used by itself or with the graphql resolver provided by @vizorous/nestjs-query-graphql.
  • @vizorous/nestjs-query-sequelize - Package that implements a Sequelize service that can be used by itself or with the graphql resolver provided by @vizorous/nestjs-query-graphql.
  • @vizorous/nestjs-query-typegoose - Package that implements a Typegoose service that can be used by itself or with the graphql resolver provided by @vizorous/nestjs-query-graphql.
  • @vizorous/nestjs-query-typeorm - Package that implements a Typeorm service that can be used by itself or with the graphql resolver provided by @vizorous/nestjs-query-graphql.

Development

If you'd like to contribute to this project, all you need to do is clone this project and run:

$ yarn

# To build all packages
$ yarn nx run-many --target=build --all

# To run all tests
$ yarn nx run-many --target=test --all

# To run the E2E tests
$ docker-compose -f examples/docker-compose.yml up -d
$ yarn nx e2e examples

# To build one package
$ yarn nx build query-graphql

Collaboration

If you have questions or issues, please open an issue!