{"id":22882692,"url":"https://github.com/nimitzdev/think-graphql-middleware","last_synced_at":"2025-03-31T16:38:35.397Z","repository":{"id":79381627,"uuid":"141867963","full_name":"NimitzDEV/think-graphql-middleware","owner":"NimitzDEV","description":"A ThinkJS middleware that handles GraphQL queries, built atop apollo-server-core","archived":false,"fork":false,"pushed_at":"2018-07-22T05:58:08.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-24T22:01:50.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NimitzDEV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-07-22T05:17:02.000Z","updated_at":"2021-06-23T03:54:57.000Z","dependencies_parsed_at":"2023-06-03T22:15:33.579Z","dependency_job_id":null,"html_url":"https://github.com/NimitzDEV/think-graphql-middleware","commit_stats":null,"previous_names":["nimitzdev/thinkjs-graphql"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NimitzDEV%2Fthink-graphql-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NimitzDEV%2Fthink-graphql-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NimitzDEV%2Fthink-graphql-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NimitzDEV%2Fthink-graphql-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NimitzDEV","download_url":"https://codeload.github.com/NimitzDEV/think-graphql-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246499365,"owners_count":20787489,"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":[],"created_at":"2024-12-13T18:19:04.631Z","updated_at":"2025-03-31T16:38:35.371Z","avatar_url":"https://github.com/NimitzDEV.png","language":"JavaScript","readme":"# think-graphql-middleware\n\n\u003e A ThinkJS middleware that handles GraphQL queries, built atop apollo-server-core.\n\n#### Install\n\n```bash\nnpm install think-graphql-middleware --save\n```\n\n#### Usage\n\nRequire the middleware at `src/config/middleware.js`\n\n```javascript\nconst graphql = require('think-graphql-middleware');\n```\n\nSet-up `match` for your desired GraphQL endpoint, and use `graphql` for `handle` parameter.\n\n```javascript\n{\n    match: '/graphql',\n    handle: graphql,\n    options: {}\n}\n```\n\nThen pass your `GraphQLSchema`instance to `schema` option. \n\n```javascript\noptions: {\n    schema: schemaInstant\n}\n```\n\n#### More details\n\nThis middleware is based on `apollo-server-core`,  more usages can be found at the [Apollo Official Site.](https://www.apollographql.com/docs/apollo-server/api/apollo-server.html)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimitzdev%2Fthink-graphql-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnimitzdev%2Fthink-graphql-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimitzdev%2Fthink-graphql-middleware/lists"}