{"id":13787161,"url":"https://github.com/ammezie/adonis-apollo-server","last_synced_at":"2025-03-22T14:31:28.097Z","repository":{"id":88640401,"uuid":"103493662","full_name":"ammezie/adonis-apollo-server","owner":"ammezie","description":"Production-ready Node.js GraphQL server for AdonisJS","archived":false,"fork":false,"pushed_at":"2020-02-09T22:39:38.000Z","size":25,"stargazers_count":64,"open_issues_count":6,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T01:02:43.415Z","etag":null,"topics":["adonisjs","apollographql","graphql","graphql-server"],"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/ammezie.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}},"created_at":"2017-09-14T06:18:16.000Z","updated_at":"2024-11-04T17:48:40.000Z","dependencies_parsed_at":"2024-01-18T23:21:28.529Z","dependency_job_id":null,"html_url":"https://github.com/ammezie/adonis-apollo-server","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/ammezie%2Fadonis-apollo-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammezie%2Fadonis-apollo-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammezie%2Fadonis-apollo-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammezie%2Fadonis-apollo-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ammezie","download_url":"https://codeload.github.com/ammezie/adonis-apollo-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244971987,"owners_count":20540903,"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":["adonisjs","apollographql","graphql","graphql-server"],"created_at":"2024-08-03T20:00:30.599Z","updated_at":"2025-03-22T14:31:27.812Z","avatar_url":"https://github.com/ammezie.png","language":"JavaScript","funding_links":[],"categories":["Databases, ORMs, Migrations \u0026 Seeding"],"sub_categories":[],"readme":"# adonis-apollo-server\n\nThis package integrates Apollo GraphQL Server with the AdonisJS framework. It allows you to use Apollo server in your AdoinsJS app.\n\n\u003e **NOTE:** This package requires [@adonisjs/bodyparser](https://github.com/adonisjs/adonis-bodyparser)\n\n## Installation\n\n```bash\nadonis install adonis-apollo-server\n```\n\n### Registering provider\n\nMake sure to register the provider inside `start/app.js` file.\n\n```js\nconst providers = [\n    'adonis-apollo-server/providers/ApolloServerProvider'\n]\n```\n\nThat's all!\n\n## Usage\n\nNow you can use the provider by pulling it from IoC container\n\n```js\n// start/routes.js\n\n'use strict'\n\nconst Route = use('Route')\nconst ApolloServer = use('ApolloServer')\nconst { makeExecutableSchema } = require('graphql-tools')\n\nconst typeDefs = `\n    type Query {\n        testString: String\n    }\n`\n\nconst resolvers = {\n    Query: {\n        testString () {\n            return 'Seems to be working!'\n        }\n    }\n}\n\nconst schema = makeExecutableSchema({ typeDefs, resolvers })\n\nRoute.route('/graphql', ({ request, response }) =\u003e {\n    return ApolloServer.graphql({ schema }, request, response)\n}, ['GET', 'POST'])\n\nRoute.get('/graphiql', ({ request, response }) =\u003e {\n    return ApolloServer.graphiql({ endpointURL: '/graphql' }, request, response)\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammezie%2Fadonis-apollo-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fammezie%2Fadonis-apollo-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammezie%2Fadonis-apollo-server/lists"}