TypeGraphQL
apollo-server
TypeGraphQL | apollo-server | |
---|---|---|
31 | 68 | |
7,963 | 13,690 | |
- | 0.2% | |
8.8 | 8.9 | |
4 days 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
-
Cerbos + GraphQL: Do not reinvent user permissions
In this tutorial, we're building a simple application which uses Cerbos inside of a GraphQL server. The server is written in typescript and uses type-graphql to create the schema and resolvers, and TypeDI to handle dependency injection.
-
Using modern decorators in TypeScript
Using decorators required setting an --experimentalDecorators experimental compiler flag. Several popular TypeScript libraries, such as type-graphql and inversify, rely on this implementation.
- help wanted: Typescript GraphQL Types Response
-
Build a Next App with a full GraphQL API using just a JSON or CSV file
TypeGraphQL
-
What to use with Apollo Server v4 to achieve type-safety?
Have you tried TypeGraphQL v2 (it's in beta). Some in this thread have reported success with it.
-
Apollo Server v4 Breaking Changes. Time to move away?
When moving away from Apollo Server, and you're looking for a replacement built with JavaScript or TypeScript, let me give you some options. If you want to keep building your GraphQL API schema first, you might want to consider Mercurius (which relies on Fastify) or GraphQL Yoga. If you're going to build your GraphQL API code or resolver first, have a look at TypeGraphQL or Nexus. Alternatively, there are great GraphQL-as-a-Service solutions such as StepZen in case you no longer want to build, maintain and host your own GraphQL API.
-
A journey towards a type-safe GraphQL API server
There are two main approaches to keeping the types of the GraphQL schema and entities in business logic in sync. You can generate the schema based on your TypeScript code (e.g. TypeGraphQL), or you can generate types based on your schema (e.g. GraphQL Code Generator). We opted for the latter since it slotted right into our existing GraphQL server implementation using Apollo Server.
-
Do you use a tool for generating your GraphQL schema, or do you write it as part of your development process?
I've used tools (e.g. TypeGraphQL) in the past, and for smaller schemas I've just manually written the schema.
-
Best python tutorials for graphql?
I'll be honest and say I don't think python is the right language to implement graphql. It's possible of course and if you're looking for a graphene tutorial, I'm sure you can find one (and I'll help you evaluate one, if you'd like). I'd personally go with node.js, typescript, and typegraphql.
-
FoalTS framework - Version 2.9 is here š
Foal's dependencies have been updated so as to support the latest version of TypeGraphQL.
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?
graphql-code-generator - A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
mercurius - Implement GraphQL servers and gateways with Fastify
nexus - Code-First, Type-Safe, GraphQL Schema Construction
graphql-mesh - šøļø GraphQL Mesh - The Graph of Everything - Federated architecture for any API service
graphql-shield - š” A GraphQL tool to ease the creation of permission layer.
nestjs-graphql - GraphQL (TypeScript) module for Nest framework (node.js) š·
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript š
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.
pothos - Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
express-graphql - Create a GraphQL HTTP server with Express.
Neo4j - Graphs for Everyone
graphql-ws - Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.