pony-cause
graphql-yoga
pony-cause | graphql-yoga | |
---|---|---|
4 | 24 | |
48 | 8,035 | |
- | 0.7% | |
6.5 | 9.2 | |
7 days ago | 5 days ago | |
JavaScript | TypeScript | |
BSD Zero Clause 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.
pony-cause
-
GraphQL error handling to the max with Typescript, codegen and fp-ts
:::note When using remote APIs, we often have the possibility to generate the types automatically from a JSON schema for REST APIs, from protobuf files for gRPC-based APIs, from a database schema, etc. You might even be using an external API through an SDK that already provides you with all types. In such cases, the creation of specialized Error classes is not mandatory. However, it might still be a good idea to do so to provide application-specific errors rather than bubbling up 3rd-party low-level errors. For such cases, the upcoming Ecma TC39 proposal for Error Cause is useful as it allows to chain errors. Polyfills exist: Pony Cause or error-cause. :::
-
Error cause: a new feature in JS that can help a lot with debugging
What a coincidence I just started using this in a project yesterday! I'm using pony-cause as a polyfill since I'm on node 15
-
TypeScript 4.5 adds JSDoc template tag defaults
I will push this new code to my pony-cause module very soon, just wanted to write this up first 🥳
-
Pony Cause 1.0: Error Causes
The impact and cause provides the most value when paired with the other, and that's what Error Cause enables and what Pony Cause is is a ponyfill for and provides helpers for.
graphql-yoga
-
Comparing Hattip vs. Express.js for modern app development
graphql: GraphQL middleware that wraps the GraphQL Yoga library
- Create Cookies in GraphQL-Yoga Resolvers using AWS Lambda Integration
-
Announcing GraphQL Yoga v3
We have migration guide try it out! We can't wait answer your questions and get your feedback on how we can make GraphQL Yoga even more better!
-
Apollo server subscriptions in production
Within our GraphQL Yoga monorepository we have a subscription package which includes a maintained (and fully TypeScript typed) PubSub implementation. https://github.com/dotansimha/graphql-yoga/tree/main/packages/subscription / https://the-guild.dev/graphql/yoga-server/v3/features/subscriptions#pubsub
-
We built a database UI for Postgres with an instant GraphQL API
It's easy to do with a Serverless Function and with GraphQL Yoga.
-
What Makes Defending GraphQL APIs Challenging to Security Engineers
And since Yoga server works perfectly with Envelop plugins, a verity of error handling and security plugins are available on the plugin hub
-
How to Build a Type-safe GraphQL API using Pothos and Kysely
In today's article we are going to create a GraphQL api using the Koa framework together with the GraphQL Yoga library and Pothos. In addition, we will use Kysely, which is a query builder entirely written in TypeScript.
-
End-to-end GraphQL error handling?
I want to share my approach to handling errors in GraphQL resolvers (I use GraphQL Yoga on the server-side) and pass them to the frontend side (where I use Svelte + @urql/svelte).
-
how it subscription work on the apollo server?
Last, in case you just want a simple GraphQL server where you don’t have to setup anything and subscriptions work out of the box (using SSE), you might wanna check out GraphQL Yoga v2 (Disclaimer: I am maintaining this library).
-
GraphQl subscriptions Nodejs
What is your server setup like? Have you tried the latest GraphQL Yoga ? It has everything configured OOTB including subscriptions.
What are some alternatives?
proposal-error-cause - TC39 proposal for accumulating errors
apollo-server - 🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
graphql-helix - A highly evolved GraphQL HTTP Server 🧬
types-in-js - Tips and tricks for working with types in JavaScript
mercurius-typescript - TypeScript usage examples and "mercurius-codegen" for Mercurius
ts-protoc-gen - Protocol Buffers Compiler (protoc) plugin for TypeScript and gRPC-Web.
express-graphql - Create a GraphQL HTTP server with Express.
fp-ts - Functional programming in TypeScript
Next.js - The React Framework
type-coverage - A CLI tool to check type coverage for typescript code
apollo-studio-community - 🎡 GraphQL developer portal featuring an IDE (Apollo Explorer), auto-documentation, metrics reporting, and more. This repo is for issues, feature requests, and preview docs. 📬