Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate react-fullstack-basic to prisma-client
- Loading branch information
1 parent
e383c21
commit f9ab2eb
Showing
23 changed files
with
7,920 additions
and
6,579 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ package-lock.json | |
node_modules | ||
.idea | ||
.vscode | ||
*.log | ||
*.log | ||
yarn.lock |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
type Post { | ||
id: ID! @unique | ||
published: Boolean! @default(value: "false") | ||
title: String! | ||
content: String! | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Specifies the HTTP endpoint of your Prisma API (deployed to a Prisma Demo server). | ||
endpoint: __PRISMA_ENDPOINT__ | ||
|
||
# Defines your models, each model is mapped to the database as a table. | ||
datamodel: datamodel.prisma | ||
|
||
# Specifies the language and directory for the generated Prisma client. | ||
generate: | ||
- generator: javascript-client | ||
output: ../src/generated/prisma-client | ||
|
||
seed: | ||
import: seed.graphql | ||
|
||
# Ensures Prisma client is re-generated after a datamodel change. | ||
hooks: | ||
post-deploy: | ||
- prisma generate | ||
|
||
# If specified, the `secret` must be used to generate a JWT which is attached | ||
# to the `Authorization` header of HTTP requests made against the Prisma API. | ||
# Info: https://www.prisma.io/docs/prisma-graphql-api/reference/authentication-ghd4/ | ||
# secret: mysecret123 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
mutation { | ||
post1: createPost( | ||
data: { | ||
title: "Join us for GraphQL Conf 2019 in Berlin" | ||
content: "https://www.graphqlconf.org/" | ||
published: true | ||
} | ||
) { | ||
id | ||
} | ||
|
||
post2: createPost( | ||
data: { | ||
title: "Subscribe to GraphQL Weekly for community news" | ||
content: "https://graphqlweekly.com/" | ||
published: true | ||
} | ||
) { | ||
id | ||
} | ||
|
||
post3: createPost( | ||
data: { | ||
title: "Follow Prisma on Twitter" | ||
content: "https://twitter.com/prisma" | ||
} | ||
) { | ||
id | ||
} | ||
} |
Oops, something went wrong.