From 0dd56c4934addcf9f031c6fdeb56b11e23b6dd11 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Sun, 28 Nov 2021 10:02:26 -0600 Subject: [PATCH] GraphQL readme --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index b87cb00..2801e50 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,30 @@ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). + +## Database + +Set the `DATABASE_URL` environment variable for your PostgreSQL DB. (e.g. `postgres://bumi@127.0.0.1:5432/bolt_fun_dev`) + +### `prisma studio` + +prisma studio runs an UI for the DB + +### `prisma migrate dev` + +Create a migration from the schema.prisma file + +### `prisma migrate deploy` + +Apply pending migrations to the database + + +## GraphQL + +GraphQL endpoint is available as netlify function on: `.netlify/functions/graphql` + +Use the Apollo GraphQL Studio to to inspect the GraphQL API: [https://studio.apollographql.com/sandbox/explorer](https://studio.apollographql.com/sandbox/explorer) + ## Available Scripts In the project directory, you can run: