CatCat inventory web version
https://www.prisma.io/docs/tutorials/bootstrapping-boilerplates/react-(fullstack)-tijghei9go/
- Up
prisma,postgres,pgadmin
cd dev . up - Prisma server
cd web/server yarn dev - Apollo web client
cd web yarn install yarn start- email :
developer@example.com - password :
nooneknows
- email :
- PostgreSQL admin
- open
http://localhost:5050 - Connection :
postgres - SSL :
Disable
- open
./web/server/database/datamodel.graphql Add
coverUrl
type Post {
id: ID! @unique
createdAt: DateTime!
updatedAt: DateTime!
isPublished: Boolean! @default(value: "false")
title: String!
text: String!
author: User!
coverUrl: String
}
Then re deploy
prisma deploy
prisma generate
Then add missing data
mutation {
updateManyPosts(
where: { coverUrl: null }
data: { coverUrl: "https://avatars1.githubusercontent.com/u/36980416" }
) {
count
}
}
