Skip to content

jpv-os/nestjs-query

This branch is 239 commits behind TriPSs/nestjs-query:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

522eacb · Sep 28, 2023
Sep 22, 2023
Aug 26, 2022
May 11, 2021
Jun 1, 2022
May 26, 2023
Aug 31, 2023
Sep 28, 2023
Sep 22, 2023
Aug 26, 2022
Mar 23, 2021
Jun 22, 2023
Apr 21, 2023
May 21, 2020
Jun 22, 2023
May 26, 2022
Aug 11, 2022
Jun 1, 2022
Sep 22, 2023
Jan 29, 2020
Jan 23, 2023
May 6, 2022
Apr 21, 2023
Feb 1, 2023
Aug 2, 2023
Aug 2, 2023
Jun 22, 2023
Sep 28, 2023
Aug 31, 2023
Aug 31, 2020
May 26, 2022
May 26, 2022
May 16, 2022
Sep 22, 2023

Repository files navigation

Nestjs-query Logo

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

  • @ptc-org/nestjs-query-core - Defines all interfaces and utility types implemented by the other packages.
  • @ptc-org/nestjs-query-graphql - Package that provides the graphql resolver and decorators for crud endpoints.
  • @ptc-org/nestjs-query-mongoose - Package that implements a Mongoose service that can be used by itself or with the graphql resolver provided by @ptc-org/nestjs-query-graphql.
  • @ptc-org/nestjs-query-sequelize - Package that implements a Sequelize service that can be used by itself or with the graphql resolver provided by @ptc-org/nestjs-query-graphql.
  • @ptc-org/nestjs-query-typegoose - Package that implements a Typegoose service that can be used by itself or with the graphql resolver provided by @ptc-org/nestjs-query-graphql.
  • @ptc-org/nestjs-query-typeorm - Package that implements a Typeorm service that can be used by itself or with the graphql resolver provided by @ptc-org/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
$ yarn docker 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!

About

Easy CRUD for GraphQL.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.9%
  • Other 0.1%