Last active
October 9, 2017 14:37
-
-
Save jthegedus/038ca11db7a81f80793328affd0240bb to your computer and use it in GitHub Desktop.
Cloud Functions for Firebase - GraphQL Server - /functionsES6/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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