Skip to content

Instantly share code, notes, and snippets.

@jthegedus
Last active October 9, 2017 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthegedus/038ca11db7a81f80793328affd0240bb to your computer and use it in GitHub Desktop.
Save jthegedus/038ca11db7a81f80793328affd0240bb to your computer and use it in GitHub Desktop.
Cloud Functions for Firebase - GraphQL Server - /functionsES6/index.js
import { https } from "firebase-functions"
import setupGraphQLServer from "./graphql/server"
/* CF for Firebase with graphql-server-express */
const graphQLServer = setupGraphQLServer()
// https://us-central1-<project-name>.cloudfunctions.net/api
export const api = https.onRequest(graphQLServer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment