Created
September 4, 2019 10:09
-
-
Save shark-h/d3578e74e0a0e3e028960999fe56332f to your computer and use it in GitHub Desktop.
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
const functions = require("firebase-functions"); | |
const admin = require("firebase-admin"); | |
const request = require("graphql-request"); | |
const client = new request.GraphQLClient('<your-graphql-endpoint>', { | |
headers: { | |
"content-type": "application/json", | |
"x-hasura-admin-secret": "<your-admin-secret>" | |
} | |
}) | |
admin.initializeApp(functions.config().firebase); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment