apollo-server VS graphql-yoga

Compare apollo-server vs graphql-yoga and see what are their differences.

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. (by apollographql)

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. (by prisma-labs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
apollo-server graphql-yoga
66 23
13,658 8,009
0.2% 0.8%
9.2 9.3
6 days ago 7 days ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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-server

Posts with mentions or reviews of apollo-server. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-16.

graphql-yoga

Posts with mentions or reviews of graphql-yoga. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-11-17.
  • Create Cookies in GraphQL-Yoga Resolvers using AWS Lambda Integration
    1 project | /r/graphql | 8 Mar 2023
  • Announcing GraphQL Yoga v3
    2 projects | dev.to | 17 Nov 2022
    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
    1 project | /r/graphql | 9 Nov 2022
    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
    2 projects | /r/vuejs | 27 Sep 2022
    It's easy to do with a Serverless Function and with GraphQL Yoga.
  • What Makes Defending GraphQL APIs Challenging to Security Engineers
    1 project | /r/graphql | 15 Sep 2022
    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
    5 projects | dev.to | 29 Aug 2022
    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?
    3 projects | dev.to | 8 May 2022
    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?
    3 projects | /r/graphql | 26 Apr 2022
    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
    1 project | /r/graphql | 5 Apr 2022
    What is your server setup like? Have you tried the latest GraphQL Yoga ? It has everything configured OOTB including subscriptions.
  • RedwoodJS Reaches 1.0 Today
    13 projects | news.ycombinator.com | 4 Apr 2022
    Not that I know of. But here are a few things that may be of interest.

    Redwood's GraphQL API is built on Yoga (we collaborate tightly with The Guild) ā€” https://www.graphql-yoga.com You just need a GraphQL Client, which The Guild already has an option ready for you https://apollo-angular.com (Note: Apollo or other clients fine as well.)

    Here's an example "How To" about connecting Next (React) with Redwood: https://community.redwoodjs.com/t/how-to-connect-a-next-js-f...

    I'm a co-founder of Redwood and help lead the project so I can say as a matter of fact we a highly collaborative and enjoy (and support) exploratory projects. It's a priority for us to better demonstrate the power of Redwood's API through examples. If you'd be interested in digging in collaboratively with the community, I can help connect the dots. Just kick things off over here and tag me @thedavidprice: https://community.redwoodjs.com

    No pressure at all! Just wanted you to know the invitation is open. Anytime.

What are some alternatives?

When comparing apollo-server and graphql-yoga you can also consider the following projects:

mercurius - Implement GraphQL servers and gateways with Fastify

graphql-helix - A highly evolved GraphQL HTTP Server šŸ§¬

graphql-mesh - The Graph of Everything - Federated architecture for any API service

mercurius-typescript - TypeScript usage examples and "mercurius-codegen" for Mercurius

nestjs-graphql - GraphQL (TypeScript) module for Nest framework (node.js) šŸ·

express-graphql - Create a GraphQL HTTP server with Express.

Next.js - The React Framework

graphql-ws - Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.

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. šŸ“¬

blog-graphql-nestjs-fileupload - example code on how to upload a file with multipart requests to GraphQL in nestjs