examples
express-graphql
examples | express-graphql | |
---|---|---|
19 | 14 | |
40 | 6,386 | |
- | - | |
3.3 | 6.1 | |
8 months ago | about 1 year 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.
examples
-
Query Real-time Data With GraphQL And Streaming Database
StepZen is a platform to build and deploy GraphQL APIs that integrates and aggregate data from various sources. In the demo section, I will show how to build a GraphQL API in declarative code using StepZen.
-
Building a JWT Login Flow with Auth0, Next.js, and StepZen
Great! With this, we've implemented the login flow using Auth0 and StepZen. You can find the complete source code for this blog post on GitHub.
-
Using SingleStoreDB, WebAssembly and GraphQL
The final step is to use GraphQL. We'll create a free account on StepZen. Once logged-in, we can access the Account, Admin Key and API Key.
-
Authenticating GraphQL APIs with OAuth 2.0
You can find a complete example of using StepZen to implement the Authorization Code flow in the StepZen GitHub repository.
-
How to use federation with a headless CMS?
Have a look at https://stepzen.com, which allows you to federate any data source no matter the framework or service used to create it. It has a generous free tier
-
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.
-
Can you compare GraphQL and tRPC?
But you can also build a GraphQL API using a code-first GraphQL server library. This means you can write the resolvers and then generate the schema from the resolvers. Code-first libraries are much closer to tRPC in terms of Developer Experience but still more challenging than using a GraphQL-as-a-service like StepZen.
-
Compose Data from Fauna and GitHub using GraphQL and StepZen
After installing, you can choose to run StepZen locally using Docker or in the cloud by signing up for a free account at stepzen.com. For this example, we'll be using the cloud version, for which you can sign up for a free account using your GitHub account.
-
Join us for Hacktoberfest 2022 by contributing to StepZen
StepZen is participating in Hacktoberfest, and you can contribute by adding a new integration or improving an existing integration in our Examples repository. Every PR to this repository will count towards your Hacktoberfest goals.
-
How to Cache GraphQL Requests Using Kong and StepZen
To get a GraphQL using StepZen, you can connect your data source or use one of the pre-built examples from Github. In this post, we'll be taking a GraphQL API created on top off a MySQL database from the examples. By cloning this repository to your local machine, you'll get a set of configuration files and .graphql files containing the GraphQL schema. To run the GraphQL API and deploy it to the cloud, you need to be using the StepZen CLI.
express-graphql
-
How to define schema once and have server code and client code typed? [Typescript]
It looked a little janky but it actually worked fine. But then I needed file uploads. Something graphql-zeus does not support. So I had to create a small wrapper for the SDK created so that it worked. And then also express-graphql, the server I was using, was deprecated.
-
Apollo Server v4 Breaking Changes. Time to move away?
This seems like a minor deal unless you're not using Express as your web framework. And an important note here is that Express GraphQL is being deprecated by the GraphQL Foundation. So if you're using Express for a GraphQL API, you should move away from it anyway.
-
Learn How to Build a GraphQL API in Node.js Using Apollo Server
You might have seen other GraphQL server solutions where the schema is implemented by using a more programmatic approach. Here is an example of how schemas are implemented using the express-graphql library. (link: https://github.com/graphql/express-graphql)
-
With Cube GraphQL API, you can query data warehouses like BigQuery and dozens of SQL-enabled databases like Postgres using GraphQL
I'm not sure where the "8MB limit" comes from but, indeed, there are issues like this where, in some implementations, the response size is limited to 100KB: https://github.com/graphql/express-graphql/issues/346
-
What's your experience with Go and GraphQL? Learning Go coming from Node
With Node I used express-graphql as opposed to something like Apollo because it's lighter and less heavy on resources compared to Apollo.
-
a first look at graphQL helix
Daniel Rearden listed the following reasons pushing him to create Helix, believing that these factors were absent from popular solutions like Apollo Server, express-graphql and Mercurius:
-
how to deploy a graphQL server with docker and fly
Express GraphQL is a library for building production ready GraphQL HTTP middleware. Despite the emphasis on Express in the repo name, you can create a GraphQL HTTP server with any HTTP web framework that supports connect styled middleware. This includes Connect itself, Express and Restify.
-
GraphQL - Diving Deep
If you are using Node.js there are a lot of implementations of GraphQL servers with a few being express-graphql, apollo-server, mercurius, graphql-helix and more. And if you are using other languages, you can see a great list here
-
What is the best way to set up a GraphQL server?
express-graphql GitHub Repository
-
REST vs. gRPC vs. GraphQL
Not sure about other libraries but it's certainly not the case for express-graphql on node.js. You can tie the graphql endpoint to any method you like. On the site I work on, we have a graphql endpoint that only accepts GET requests in production and is thus cacheable by Cloudfront. In dev and staging we accept all requests so that GraphIQL works.
What are some alternatives?
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.
altair - ✨⚡️ A beautiful feature-rich GraphQL Client for all platforms.
Hasura - Blazing fast, instant realtime GraphQL APIs on your DB with fine grained access control, also trigger webhooks on database events.
stepzen-alpaca-graphql-svelte - This repository contains a demonstration of the /account and /orders endpoint from Alpaca Trading API being transformed into a single GraphQL endpoint using StepZen. It also contains a svelte application that consumes the GraphQL endpoint
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
stepzen-web3-app
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.
wundergraph - WunderGraph is a Backend for Frontend Framework to optimize frontend, fullstack and backend developer workflows through API Composition.
graphql-helix - A highly evolved GraphQL HTTP Server 🧬
mercurius - Implement GraphQL servers and gateways with Fastify
TypeGraphQL - Create GraphQL schema and resolvers with TypeScript, using classes and decorators!