{"id":14482945,"url":"https://github.com/timneutkens/micro-graphql","last_synced_at":"2025-04-23T04:49:08.559Z","repository":{"id":78413668,"uuid":"75480395","full_name":"timneutkens/micro-graphql","owner":"timneutkens","description":"Example usage of GraphQL with ZEIT's micro","archived":false,"fork":false,"pushed_at":"2017-06-25T12:52:25.000Z","size":1,"stargazers_count":71,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T22:13:11.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/timneutkens.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":"2016-12-03T15:01:35.000Z","updated_at":"2023-09-07T07:19:16.000Z","dependencies_parsed_at":"2023-04-30T19:30:56.056Z","dependency_job_id":null,"html_url":"https://github.com/timneutkens/micro-graphql","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/timneutkens%2Fmicro-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timneutkens%2Fmicro-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timneutkens%2Fmicro-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timneutkens%2Fmicro-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timneutkens","download_url":"https://codeload.github.com/timneutkens/micro-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250372943,"owners_count":21419722,"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-09-03T00:01:24.251Z","updated_at":"2025-04-23T04:49:08.523Z","avatar_url":"https://github.com/timneutkens.png","language":null,"readme":"# Micro-graphql\nExample usage of GraphQL with ZEIT's micro\n\n## Installation\n\n`npm install -g micro` or `yarn global add micro`\n\n## Usage\n\nCreate an `index.js` file with the following contents:\n\n```javascript\nconst { buildSchema } = require('graphql')\nconst graphqlHTTP = require('express-graphql')\n\nconst schema = buildSchema(`\n  type Query {\n    hello: String\n  }\n`)\n\nconst rootValue = {\n  hello: () =\u003e 'Hello world'\n}\n\nmodule.exports = graphqlHTTP({\n  schema,\n  rootValue,\n  graphiql: true\n})\n```\n\nThen run\n`micro index.js`\n\n## Boilerplates\n\n[Kennet Postigo](https://github.com/kennetpostigo) made an excellent boilerplate based on the example above:\n[hyperfuse/micro-graphql](https://github.com/hyperfuse/micro-graphql)\n\n## Alternatives\n\n[Micro with Apollo](https://github.com/timneutkens/micro-apollo)\n\n","funding_links":[],"categories":["Others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimneutkens%2Fmicro-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimneutkens%2Fmicro-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimneutkens%2Fmicro-graphql/lists"}