{"id":13700847,"url":"https://github.com/idurar/fast-graphql","last_synced_at":"2025-10-27T17:30:36.050Z","repository":{"id":44953084,"uuid":"443825070","full_name":"idurar/fast-graphql","owner":"idurar","description":"Node.js Package to Combine Resolvers \u0026 Merge Graphql Schema","archived":false,"fork":false,"pushed_at":"2023-06-11T17:00:32.000Z","size":28,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-28T21:23:40.618Z","etag":null,"topics":["apollo-server","definitions","graphql-apollo","graphql-combine-resolvers","graphql-merge","graphql-merge-schema","graphql-resolver","graphql-schema","graphql-schema-generator","graphql-typedefs","graphql-typescript","nodejs-server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/idurar.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":"2022-01-02T17:15:39.000Z","updated_at":"2024-03-19T15:19:13.000Z","dependencies_parsed_at":"2024-09-18T18:44:22.410Z","dependency_job_id":null,"html_url":"https://github.com/idurar/fast-graphql","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.47058823529411764","last_synced_commit":"f4620ba53138d90db52b1de74230a777fbc4f6d6"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idurar%2Ffast-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idurar%2Ffast-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idurar%2Ffast-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idurar%2Ffast-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idurar","download_url":"https://codeload.github.com/idurar/fast-graphql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219860931,"owners_count":16556009,"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":["apollo-server","definitions","graphql-apollo","graphql-combine-resolvers","graphql-merge","graphql-merge-schema","graphql-resolver","graphql-schema","graphql-schema-generator","graphql-typedefs","graphql-typescript","nodejs-server"],"created_at":"2024-08-02T20:01:03.117Z","updated_at":"2025-10-27T17:30:35.708Z","avatar_url":"https://github.com/idurar.png","language":"JavaScript","funding_links":[],"categories":["Implementations"],"sub_categories":["JavaScript/TypeScript"],"readme":"# 🚀 fast-graphql\n\nGraphql Tools to Strucutre , Combine Resolvers , Merge Schema Definitions and generate schema file for Node.js / Next.Js / Graphql Apollo server\n\nTopics\n\n\n## Install\n\n```\nnpm i fast-graphql\n```\n\n```\nyarn add fast-graphql\n```\n\n## Example : Next.js Graphql Server that use fast-graphql\n- [Nex.js Advanced Graphql Crud MongoDB Starter](https://github.com/idurar/starter-advanced-graphql-crud-next-js-mongodb) - Starter Generic CRUD with Advanced Apollo Graphql server with Next.js and Mongodb (TypeScript)\n\n- [https://github.com/idurar/next-js-graphql-apollo-server-starter](https://github.com/idurar/next-js-graphql-apollo-server-starter)\n\n\n## To Merge Schema\n\n```\nimport { mergeSchemas } from 'fast-graphql';\n\nconst pathfiles = './backend/graphql/typeDefs/*.gql';\n\nconst mergedSchemas = mergeSchemas({ pathfiles });\n\nexport default mergedSchemas;\n\n```\n\n## To Combine Resolvers\n\n```\nimport { combineResolvers, resolverType } from 'fast-graphql';\n\nimport user from './user';\nimport place from './place';\nimport review from './review';\n\nconst resolvers: resolverType[] = [place, user, review];\n\nconst cominedResolvers = combineResolvers({ resolvers });\n\nexport default cominedResolvers;\n\n```\n\n## To Generate Schema file (recomended to deploy to vercel easly)\n\n```\n./scripts/generateSchema.js \n\nconst { generateSchema } = require('fast-graphql');\n\nconst inputPath = './graphql/typeDefs/*.gql';\nconst schemaPath = './graphql/schema.graphql';\nconst typeDefsPath = './graphql/typeDefs/index.ts';\n\ngenerateSchema({ inputPath, schemaPath, typeDefsPath });\n\n```\n\n```\n# package.json\n\n\"scripts\": {\n    \"dev\": \"yarn generate \u0026\u0026 next dev\",\n    ...\n    \"generate:schema\": \"node ./scripts/generateSchema\"\n  },\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidurar%2Ffast-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidurar%2Ffast-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidurar%2Ffast-graphql/lists"}