Skip to content

Commit 68da0dc

Browse files
committed
Move Prisma example
1 parent 0c452a8 commit 68da0dc

File tree

21 files changed

+7822
-20
lines changed

21 files changed

+7822
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
projects:
22
prisma:
3-
schemaPath: "../src/generated/prisma.graphql"
3+
schemaPath: "./generated/prisma.graphql"
44
extensions:
55
prisma: prisma.yml
66
codegen:
77
generator: prisma-binding
88
output:
9-
binding: ../src/generated/prisma.ts
9+
binding: "generated/prisma.ts"
1010
language: typescript

examples/with-prisma/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Prisma example
2+
3+
This is an example of how to use GraphQL Authentication with [Prisma](https://www.prisma.io/). It uses the adapter package for Prisma, [graphql-authentication-prisma](https://github.com/Volst/graphql-authentication/tree/master/packages/graphql-authentication-prisma).
4+
5+
## Usage
6+
7+
You need to have Docker installed. If you're new to Prisma, you might want to read the [Quickstart](https://www.prismagraphql.com/docs/quickstart/) first.
8+
9+
```
10+
docker-compose up -d # now wait for it to start
11+
yarn prisma deploy
12+
npm i
13+
npm start
14+
```
15+
16+
Go to http://localhost:4000 in your browser and start running some queries and mutations!

0 commit comments

Comments
 (0)