{"id":15192560,"url":"https://github.com/jthegedus/firebase-functions-graphql-example","last_synced_at":"2025-10-02T08:30:49.781Z","repository":{"id":83212164,"uuid":"89370860","full_name":"jthegedus/firebase-functions-graphql-example","owner":"jthegedus","description":"GraphQL server running on Cloud Functions for Firebase","archived":true,"fork":false,"pushed_at":"2019-05-19T23:51:44.000Z","size":85,"stargazers_count":107,"open_issues_count":0,"forks_count":17,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-28T21:41:55.256Z","etag":null,"topics":["cloud-functions","firebase-functions","graphql","graphql-server","serverless"],"latest_commit_sha":null,"homepage":"https://codeburst.io/graphql-server-on-cloud-functions-for-firebase-ae97441399c0","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jthegedus.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":"2017-04-25T14:34:28.000Z","updated_at":"2024-06-15T22:12:14.000Z","dependencies_parsed_at":"2023-03-01T20:31:08.919Z","dependency_job_id":null,"html_url":"https://github.com/jthegedus/firebase-functions-graphql-example","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":0.1428571428571429,"last_synced_commit":"763d236054904e14c06f4972236c0d48049beac9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthegedus%2Ffirebase-functions-graphql-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthegedus%2Ffirebase-functions-graphql-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthegedus%2Ffirebase-functions-graphql-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jthegedus%2Ffirebase-functions-graphql-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jthegedus","download_url":"https://codeload.github.com/jthegedus/firebase-functions-graphql-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234957769,"owners_count":18913346,"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":["cloud-functions","firebase-functions","graphql","graphql-server","serverless"],"created_at":"2024-09-27T21:42:11.640Z","updated_at":"2025-10-02T08:30:44.497Z","avatar_url":"https://github.com/jthegedus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚨 [deprecated, new example at firebase-gcp-examples](https://github.com/jthegedus/firebase-gcp-examples)\n\n---\n\n## GraphQL Server on Cloud Functions for Firebase\n\nHost a GraphQL Server in Cloud Functions for Firebase [with ES6+](https://github.com/jthegedus/firebase-functions-es6-example)!\n\nHere is the accompanying [Medium Post](https://medium.com/@jthegedus/graphql-server-on-cloud-functions-for-firebase-ae97441399c0).\n\nThis method is markedly simpler than any other GraphQL-on-FaaS method I have seen. No custom packages for [GCP](https://github.com/nicolasdao/google-graphql-functions) or struggling with API Gateway or complex setup instructions for [AWS](https://github.com/apollographql/graphql-server/tree/master/packages/graphql-server-lambda). Just use the [most prominent, community drive implementation](http://dev.apollodata.com/tools/graphql-server/index.html).\n\n## TLDR;\nHost your GraphQL Server on Cloud Functions enabling rapid development with GraphQL on a low-cost, auto-scaling web server leveraging Firebase's sweet, sweet developer experience.\n\nCloud Functions can accept an [Express Server object directly](http://stackoverflow.com/questions/43579442/cloud-functions-for-firebase-and-express), so leverage the Apollo [apollo-server-express](https://github.com/apollographql/apollo-server) pacakge to setup our GraphQL server.\n\nThe schema and resolvers are the same used in the [Apollo example](https://github.com/apollographql/frontpage-server).\n\n### Routes\nSchema: `https://us-central1-\u003cproject-name\u003e.cloudfunctions.net/api/schema`\n\nGraphiQL: `https://us-central1-\u003cproject-name\u003e.cloudfunctions.net/api/graphiql`\n\nGraphQL: `https://us-central1-\u003cproject-name\u003e.cloudfunctions.net/api/graphql?\u003cquery\u003e`\n\n## Installation\n```\ngit clone https://github.com/jthegedus/firebase-functions-graphql-example\ncd firebase-functions-graphql-example\nyarn install\n```\n\n## Local Development\n```\nyarn serve\n```\nThis will serve the Cloud Functions locally using the [Firebase emulator](https://firebase.google.com/docs/functions/local-emulator).\n\n## Deploy to Firebase\n```\nyarn deploy\n```\n*N.B.*: Replace `\u003cproject-name\u003e` in the `.firebaserc` to connect the project to your Firebase project.\n\n## A note on Code Compatibility\nEverything was tested on Ubuntu 16.04 \u0026 Windows 10 with [Bash on Ubuntu on Windows](https://msdn.microsoft.com/en-au/commandline/wsl/about). If you wish for Windows native support please [submit an issue](https://github.com/jthegedus/firebase-functions-graphql-example/issues/new) so we can work on a Windows branch. Please report any macOS errors as I do not have access to a device to test. [My development environment can be found here](https://github.com/jthegedus/dotfiles).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthegedus%2Ffirebase-functions-graphql-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjthegedus%2Ffirebase-functions-graphql-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjthegedus%2Ffirebase-functions-graphql-example/lists"}