nestjs-openapi3
graphql
nestjs-openapi3 | graphql | |
---|---|---|
1 | 16 | |
24 | 1,424 | |
- | 1.5% | |
0.0 | 9.4 | |
over 1 year ago | 12 days ago | |
TypeScript | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nestjs-openapi3
-
Show HN: Remult – a CRUD framework for full-stack TypeScript
So I spent a lot of time in the Nest ecosystem, and I wrote some nontrivial libraries with a little (not a lot) of uptake (and neither are actively maintained at this point, so these are here mostly for completeness):
https://github.com/eropple/nestjs-auth
https://github.com/eropple/nestjs-openapi3
I was pretty excited by NestJS when I ran into it because, well--I don't mind magic, when it's done right. I quite like Spring Boot, for example. But NestJS's magic is...incorrect, in a lot of ways. The DI container is a little bit scary, with oddly hardcoded ways to register interceptors into request scope (itself necessary because NestJS's logging facilities aren't--or weren't at the time--decorating requests with X-Request-Id or similar, so you had to register your own) and no way to then define interceptor order.
It also has a lot of really overlapping nouns; guards are interceptors but less capable (and @eropple/nestjs-auth didn't use them at all) and the "pipe" concept for validation was itself inscrutable. To make it usable, I ended up just doing everything with decorators and interceptors, all living in request scope. And once I'd gotten it going, it was pretty nice. But it also meant broad incompatibilities with much of the NestJS ecosystem.
graphql
-
Unlocking the Power of GraphQL for Beginners: A Step-by-Step Guide to Integrating GraphQL into Your Existing Project
Let’s use the official documentation to follow the correct setup Documentation | NestJS - A progressive Node.js framework
-
Implement field permissions with FieldMiddleware
Also use Express and Apollo, following Quick start.
-
NestJS vs. Ditsmod: DI features for interceptors, guards, pipes and filters
This code demonstrates the centralized addition of a guard to a module, and by the way, NestJS v9 still doesn’t support this feature. In NestJS, adding a guard is supported only at the controller or method level, because the guard is not considered a provider.
-
Creating a GraphQL server with NestJS
To change your NestJS API into GraphQL, follow the GraphQL quickstart with NestJS and import the following code to your AppModule in src/app.module.ts.
- script not running if i load the page with some urls
- Show HN: Remult – a CRUD framework for full-stack TypeScript
- Nest JS With Graphql World
-
How not to learn GraphQL
Nest.js is an excellent alternative for GraphQL APIs building for Angular design and DDD lovers. Nest.js comes with:
-
What stack do you use with graphql?
[NestJS](https://docs.nestjs.com/graphql/quick-start)
-
What do you want to know GRAPHQL + NESTJS ?
I am interested in getting subscriptions working with federation. One solution I think is to run a separate non-federated end-point but I think NestJS has a bug where is merges the schemas. https://github.com/nestjs/graphql/issues/721 has been locked for over a year :(
What are some alternatives?
json-schema-to-typescript - Compile JSONSchema to TypeScript type declarations
pothos - Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
openapi-typescript - Generate TypeScript types from OpenAPI 3 specs
GraphQL-NestJS-MongoDB-TypeScript-Tutorial - A GraphQL API build on top of NextJS
remult - Full-stack CRUD, simplified, with SSOT TypeScript entities
auth-nest-graphql - nest on top of fastify with mongo and graphql passwort jwt and bcrypt
nestjs-auth - Comprehensive handling of authentication and authorization for NestJS.
LoopBack - LoopBack makes it easy to build modern applications that require complex integrations.
MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.
django-channels - Developer-friendly asynchrony for Django
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
TypeGraphQL - Create GraphQL schema and resolvers with TypeScript, using classes and decorators!