diff options
| author | Randy Ridge <randyridge@gmail.com> | 2018-09-14 20:01:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-14 20:01:25 -0400 |
| commit | 908180c77cd38011eeedcae949613da2a3391e5e (patch) | |
| tree | b59bf1aae819a04d453cde72f6e601f5561a740f /finished-application/backend/src/db.js | |
| parent | 1f6667d233a4a2e9df977204d83a8f749c050c75 (diff) | |
| parent | b3bebda57ba187b7fa10398054b54c05d3fd3555 (diff) | |
Merge branch 'master' into randyridge/our
Diffstat (limited to 'finished-application/backend/src/db.js')
| -rw-r--r-- | finished-application/backend/src/db.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/finished-application/backend/src/db.js b/finished-application/backend/src/db.js index e8caa14..8f66240 100644 --- a/finished-application/backend/src/db.js +++ b/finished-application/backend/src/db.js @@ -1,10 +1,11 @@ +// This file connects to the remote prisma DB and gives us the ability to query it with JS const { Prisma } = require('prisma-binding'); const db = new Prisma({ typeDefs: 'src/generated/prisma.graphql', - endpoint: process.env.PRISMA_ENDPOINT, // the endpoint of the Prisma DB service (value is set in variables.env) - secret: process.env.PRISMA_SECRET, // taken from prisma/prisma.yml (value is set in .env) - debug: false, // log all GraphQL queries & mutations + endpoint: process.env.PRISMA_ENDPOINT, + secret: process.env.PRISMA_SECRET, + debug: false, }); -module.exports = db;
\ No newline at end of file +module.exports = db; |
