{"id":18448639,"url":"https://github.com/tomyitav/graphql-server-seed","last_synced_at":"2026-03-12T19:13:44.610Z","repository":{"id":92345431,"uuid":"90459406","full_name":"tomyitav/graphql-server-seed","owner":"tomyitav","description":"Easily create a modular graphql server","archived":false,"fork":false,"pushed_at":"2018-01-05T13:24:11.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T10:34:19.813Z","etag":null,"topics":["apollo-server","graphql","graphql-server","graphql-subscriptions","mongodb"],"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/tomyitav.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":"2017-05-06T11:51:29.000Z","updated_at":"2023-07-05T10:10:15.000Z","dependencies_parsed_at":"2023-05-16T23:00:29.588Z","dependency_job_id":null,"html_url":"https://github.com/tomyitav/graphql-server-seed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tomyitav/graphql-server-seed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fgraphql-server-seed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fgraphql-server-seed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fgraphql-server-seed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fgraphql-server-seed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomyitav","download_url":"https://codeload.github.com/tomyitav/graphql-server-seed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomyitav%2Fgraphql-server-seed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30439635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["apollo-server","graphql","graphql-server","graphql-subscriptions","mongodb"],"created_at":"2024-11-06T07:16:36.482Z","updated_at":"2026-03-12T19:13:44.585Z","avatar_url":"https://github.com/tomyitav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# graphql-server-seed\n\nEasily get started and create your graphql server using:\n\n+ graphql-server-express\n+ graphql-subscriptions\n+ graphql-tools\n+ merge-graphql-schemas\n+ mongoose\n+ babel-cli\n\nThis project demonstrates how to add Queries, Mutations and Subscriptions in a modular way.\n\n## Installation\n\nClone the repository and run `npm install`\n\n```\ngit clone https://github.com/tomyitav/graphql-server-seed.git\nnpm install\n```\n\n## Starting the server\n\n```\nnpm start\n```\n\nThe server will run on port 8080. You can change this by editing config file.\n\n## Project structure\n\nWe use the function `makeExecutableSchema()` from graphql-tools to to combine our\ntypes and resolvers. Instead of passing one large string for our schema, we\nsplit our types and resolvers to multiple files, located in graphql directory in\ntypes and resolvers directories. This way, we avoid schema complexity by using\nmerge-graphql-schemas:\n\n```js\n  import path from \"path\";\n  import { makeExecutableSchema } from 'graphql-tools';\n  import { fileLoader, mergeTypes, mergeResolvers } from 'merge-graphql-schemas';\n\n  const typesArray = fileLoader(path.join(__dirname, '../types'), { recursive: true });\n  const resolversArray = fileLoader(path.join(__dirname, '../resolvers'));\n  const allTypes = mergeTypes(typesArray);\n  const allResolvers = mergeResolvers(resolversArray);\n  const schema = makeExecutableSchema({\n      typeDefs: allTypes,\n      resolvers: allResolvers\n  });\n\n  export default schema;\n```\n\nSo as your project grows - you can extend the schema by adding new type in types\ndirectory, and adding matching resolver file in resolvers directory. The schema\nis updated automatically.\n\n## Debugging with Webstorm\n\nSet babel-node executable as the node interpreter.\nPass node parameters of --preset=babel-preset-es2015\n\n## Create Docker image\n\nAfter npm intalling the project, go to project root directory, open shell and run:\n```\ndocker build -t graphql-server-seed .\n```\n\nInstructions about running the container are available [here](https://hub.docker.com/r/tomyitav/graphql-server-seed/)\n\n## Connect to the server from client app\n\nSee the following [example](https://github.com/tomyitav/apollo-angular-client-starter) on how to connect to the server using apollo-angular.\nThe project demonstrates using Queries, Mutations and Subscriptions.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomyitav%2Fgraphql-server-seed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomyitav%2Fgraphql-server-seed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomyitav%2Fgraphql-server-seed/lists"}