apollo-tooling
graphql-subscriptions
Our great sponsors
apollo-tooling | graphql-subscriptions | |
---|---|---|
8 | 7 | |
3,038 | 1,578 | |
-0.1% | 0.1% | |
0.6 | 4.6 | |
20 days ago | 3 months 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.
apollo-tooling
-
apollo client codegen vs graphql cli codegen
Apollo is deprecating their tooling, best to go with GraphQL Code Generator.
-
Building a CSS tricks website clone with Webiny and NextJS
Alternatively, you can use Apollo GraphQL or any dependency of your choice to make API request.
-
The Stack #2
When you talk about GraphQL, one simply cannot forget GraphQL Tools irrespective of the architecture or stack you use. Initially developed by Apollo and then taken over by The Guild, GraphQL Tools provides you a very powerful set of utility functions to work with GraphQL which you can use in your services irrespective of whethere you are using something like Apollo Federation or Schema Stitching.
-
The Stack #3
The Apollo CLI when combined with Federation does come with a lot of helpers to take care of things like pushing the schema, listing the services in the studio, doing codegen and so on though I am not currently sure why they are rewriting it again to Rust apart from the reasons as suggested here.
-
What is the best database for synchronizing?
ApolloGraphql: https://apollographql.com
-
Using useSWR as an alternative to Subscriptions?
The tech stack I used for this site was: Prisma w/ GraphQL-Yoga / Apollo & GraphQL / Express / NextJS / MongoDB
-
Here's how to take a GraphQL schema and get typed queries & results out of the box
This is great, thanks. I'm wondering if you still need to explicitly reference types, such as with Apollo's codegen where you would do something like useQuery or is it fully automatic like in the gif in the article?
-
Step by step guide of how to painlessly type GraphQL execution result
https://github.com/apollographql/apollo-tooling#apollo-clientcodegen-output
graphql-subscriptions
-
three ways to deploy a serverless graphQL API
graphql-yoga is built on other packages that provide functionality required for building a GraphQL server such as web server frameworks like express and apollo-server, GraphQL subscriptions with graphql-subscriptions and subscriptions-transport-ws, GraphQL engine & schema helpers including graphql.js and graphql-tools, and an interactive GraphQL IDE with graphql-playground.
-
Subscriptions and Live Queries - Real Time with GraphQL
The most common used (but not best maintained) library for such a PubSub engine in the GraphQL context is graphql-subscriptions. There are also adapters available for more distributed systems (where all GraphQL API replicas must be notified about the event) e.g. over Redis.
-
GraphQL over WebSockets
During that work, we created and merged the reference implementation into graphql-js and created two supporting libraries: graphql-subscriptions and subscriptions-transport-ws. Here is a talk with deep dive into all the details.
-
Using useSWR as an alternative to Subscriptions?
The Prisma / GraphQL-Yoga comes with Subscriptions, and this was the first thing I came across when my client asked for realtime updates. The implementation was quite difficult - took me a long time. Eventually, it was working locally, and in staging. However, when it came to the production environment, for some reason it just didn't work! This unfortunately ended up with a user losing an auction, which ultimately went to court etc.
-
GraphQL subscriptions not working consistently
There are also other solutions available: https://github.com/apollographql/graphql-subscriptions#pubsub-implementations
-
Build a chat app with GraphQL Subscriptions & TypeScript: Part 2
First, let's try to understand what PubSub is exactly. Apollo Server uses a publish-subscribe (pub/sub) model to track events that update subscriptions. The graphql-subscriptions library included in all apollo-server packages (including middleware integrations) provides a PubSub class as a basic in-memory event bus.
-
GraphQL the Simple Way, or: Don't Use Apollo
To add this, I can just expand the basic setup above. To do so, I do actually use a couple of small Apollo modules! Most can be picked and configured independently. For this case, graphql-subscriptions provides a little bit of pubsub logic that works within resolvers, and subscriptions-transport-ws integrates that into Express to handle the websockets themselves. Super helpful
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.
uWebSockets.js - μWebSockets for Node.js back-ends :metal:
vscode-graphql - MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
amplify-flutter - A declarative library with an easy-to-use interface for building Flutter applications on AWS.
graphql-editor - 📺 Visual Editor & GraphQL IDE.
graphql-redis-subscriptions - A graphql subscriptions implementation using redis and apollo's graphql-subscriptions
graphql-live-query - Realtime GraphQL Live Queries with JavaScript
fastify-websocket - basic websocket support for fastify
jaeger - CNCF Jaeger, a Distributed Tracing Platform
subscriptions-transport-ws - :arrows_clockwise: A WebSocket client + server for GraphQL subscriptions
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
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.