typegraphql-prisma
apollo-server
Our great sponsors
typegraphql-prisma | apollo-server | |
---|---|---|
6 | 66 | |
859 | 13,663 | |
- | 0.2% | |
6.8 | 9.1 | |
2 months ago | 5 days ago | |
TypeScript | TypeScript | |
MIT License | 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.
typegraphql-prisma
-
TypeGraphQL/Nexus vs GraphQL Codegen TypeScript resolvers
I like nexus with prisma better. I feel like typegraphql shines the most when using with orms like MikroORM of TypeORM. Though prisma with typegraphql is not a bad idea, there's a cool plugin that can generate crud resolvers.
- TypeORM and go-to ORM's 2021. TypeORM dead?
-
One ORM to rule them all
I think Prisma is not only modern ORM. If we want to build a GraphQL api, it will help us boost our work. We don't have to waste our time to make CRUD operations, we just define Prisma model and it will do it for us: https://github.com/MichalLytek/typegraphql-prisma/blob/main/Readme.md
-
TypeORM: Connection vs getConnection, EntityManager vs getManager, Repository vs getRepository
Prisma works well with TypeGraphQL. In fact, there's a generator that makes it easier to generate TypeGraphQL types and CRUD resolvers from your Prisma 2 schema: https://github.com/MichalLytek/typegraphql-prisma
-
How the F**** does anyone use Prisma in production?
There are also several tools that allow you generate a GraphQL CRUD API based on Prisma, such as Amplication, KeystoneJS or typegraphql-prisma.
-
Building a GraphQL CRUD API for your Database with TypeGraphQL & Prisma
Learn more about other advanced operations you can apply to your GraphQL resolvers, such as custom resolvers, authorization, middleware and additional decorators to your Prisma schema and models here.
apollo-server
-
React Server Components Example with Next.js
Another interesting point is that executing fetches on the server can allow developers to more easily leverage caching. Next.js already handles caching out-of-the-box and Iām curious to see if the wider adoption of RSC reduces the need to combine React with solutions like Apollo Server and Apollo Client. While there are other benefits to these tools, RSC could provide similar caching behavior without the need to invest in a GraphQL solution.
-
Building Scalable GraphQL Microservices With Node.js and Docker: A Comprehensive Guide
There are several GraphQL server implementations, however, for this tutorial, we'll utilize Apollo GraphQL's Apollo Server, a lightweight and flexible JavaScript server that makes it easy to build GraphQL APIs.
-
Launch HN: Serra (YC S23) ā Open-source, Python-based dbt alternative
As I mentioned, their main GraphQL server package is[1], so that's where the confusion came from. Thanks.
[1] https://github.com/apollographql/apollo-server/blob/9817bc47...
-
Who moved my error codes? Adding error types to your GoLang GraphQL Server
While working on this blog post, I learned that Apollo Server, the most popular GraphQL server for typescript, uses a similar method for adding error codes to GraphQL. It even lets you add custom errors. Hopefully, someday other GraphQL server projects will follow them. Until then, weāve got a strong indication we took the right approach.
-
Zero to Serverless Car Insurance - Part 2
GraphQL is just a schema, there are many different implementations of a GraphQL server, AppSync being one of them. I mentioned Apollo server in this series as well.
- How can i do query directives or executable directives?
-
How we migrated to Apollo Server 4
After some head-scratching, I opened an issue on Apollo Serverās GitHub repository. There, Apollo Server contributor @āglasser shared a helpful suggestion: why not invoke our AuthPlugin from Apollo Serverās context function? Throwing from context would ensure we can control the HTTP status response without having to introduce more methods and error checks to our AuthPlugin (like unexpectedErrorProcessingRequest). With that suggestion in mind, we rewrote our AuthPlugin as follows:
-
why would a developer choose nodejs over c#.net for backend?
Apollo as a middleware in Express.js, actually.
-
Using Postman and Postman Interceptor to authenticate a session cookie based GraphQL API
Apollo Server 3 Cookie Issue #5775
-
Custom API server with basic CRUD ā Apollo, GraphQL & MongoDB
Lastly, instead of writing our API core ourselves, we'll be using the star of this episodeā---āApollo Server (a.k.a. GraphQL server). It has detailed documentation available here.
What are some alternatives?
mikro-orm-graphql-example - A MikroORM (v4) example project for GraphQL made with Typescript using TypeGraphQL
mercurius - Implement GraphQL servers and gateways with Fastify
nexus-plugin-prisma - Deprecated
graphql-mesh - The Graph of Everything - Federated architecture for any API service
runtypes - Runtime validation for static types
nestjs-graphql - GraphQL (TypeScript) module for Nest framework (node.js) š·
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
graphql-yoga - š§ Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API and can run/deploy on any JS environment.
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.
express-graphql - Create a GraphQL HTTP server with Express.
Knex - A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.
graphql-ws - Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.