{"id":13469683,"url":"https://github.com/benawad/express-gql","last_synced_at":"2025-10-26T04:45:35.599Z","repository":{"id":77856717,"uuid":"232643175","full_name":"benawad/express-gql","owner":"benawad","description":"Express GraphQL Server with Validation Caching and graphql-jit","archived":false,"fork":false,"pushed_at":"2022-02-23T20:26:26.000Z","size":21,"stargazers_count":51,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T07:47:05.698Z","etag":null,"topics":["express","graphql","node"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benawad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-08T19:35:42.000Z","updated_at":"2023-07-11T07:49:04.000Z","dependencies_parsed_at":"2023-03-06T20:15:21.510Z","dependency_job_id":null,"html_url":"https://github.com/benawad/express-gql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fexpress-gql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fexpress-gql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fexpress-gql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fexpress-gql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benawad","download_url":"https://codeload.github.com/benawad/express-gql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814898,"owners_count":20352037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["express","graphql","node"],"created_at":"2024-07-31T15:01:50.613Z","updated_at":"2025-10-26T04:45:30.545Z","avatar_url":"https://github.com/benawad.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# express-gql\n\nThis is a mix between `fastify-gql` and `graphql-api-koa` for Express. \n\n## Why\n\nI wanted to use `fastify-gql` but I relied on some Express middleware, so I took the GraphQL caching techniques used in `fastify-gql` and copied them into some `express` middleware.\n\n## Setup\n\n```\nyarn add express-gql\n```\n\n## Usage\n\n```js\nconst bodyParser = require(\"body-parser\");\nconst { createGraphqlMiddleware } = require(\"express-gql\");\nconst express = require(\"express\");\nconst schema = require('./schema');\n\nconst app = express();\n\napp.post(\n  \"/graphql\",\n  bodyParser.json(),\n  createGraphqlMiddleware({\n    context: ({ req, res }) =\u003e ({}),\n    formatError: ({ req, error }) =\u003e error,\n    schema\n  })\n);\n```\n\n## Subscriptions\n\nhttps://github.com/apollographql/subscriptions-transport-ws\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenawad%2Fexpress-gql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenawad%2Fexpress-gql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenawad%2Fexpress-gql/lists"}