BOD-14 Backend server work + sending of messages WIP for front end
This commit is contained in:
9
server/graphql-client/graphql-client.js
Normal file
9
server/graphql-client/graphql-client.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const GraphQLClient = require("graphql-request").GraphQLClient;
|
||||
require("dotenv").config();
|
||||
|
||||
//TODO May need to use a different client that includes caching of resources.
|
||||
exports.client = new GraphQLClient(process.env.GRAPHQL_ENDPOINT, {
|
||||
headers: {
|
||||
"x-hasura-admin-secret": process.env.HASURA_ADMIN_SECRET
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user