prisma / prisma-admin-feedback

Feedback for Prisma Admin (currently in invite-only preview)
6 stars 1 forks source link

Query of Prisma can't change #143

Open rlarnfktkd1 opened 5 years ago

rlarnfktkd1 commented 5 years ago

Describe the bug A clear and concise description of what the bug is. I tried to prisma deploy 5. but Query of Prisma was not change... Please fix this problem

package.json "dependencies": { "@babel/core": "^7.4.4", "@babel/node": "^7.2.2", "@babel/preset-env": "^7.4.4", "dotenv": "^8.0.0", "global": "^4.3.2", "graphql-tools": "^4.0.4", "graphql-yoga": "^1.17.4", "jsonwebtoken": "^8.5.1", "merge-graphql-schemas": "^1.5.8", "morgan": "^1.9.1", "nodemailer": "^6.1.1", "nodemailer-sendgrid-transport": "^0.2.0", "passport": "^0.4.0", "passport-jwt": "^4.0.0", "path": "^0.12.7", "prisma": "^1.33.0" }, "devDependencies": { "nodemon": "^1.19.0" }, "scripts": { "dev": "nodemon --exec babel-node src/server.js --delay 2", "generate": "prisma generate", "prisma": "yarn run deploy && yarn run generate", "deploy": "prisma deploy" },

datamodel.prisma `type Like { id: ID! @id @unique user: User @relation(name: "LikesOfUser") post: Post @relation(name: "LikeOfPost") comment: Comment @relation(name: "LikeOfComment") createdAt: DateTime @createdAt updatedAt: DateTime @updatedAt }

type Comment { id: ID! @id @unique text: String! user: User @relation(name: "CommentsOfUser") post: Post @relation(name: "CommentOfPost") likes: [Like!]! @relation(name: "LikeOfComment", onDelete: CASCADE) createdAt: DateTime @createdAt updatedAt: DateTime @updatedAt } ` To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. image image image

But!!!!! image

Versions (please complete the following information):

Additional context Add any other context about the problem here.

sdnts commented 5 years ago

@rlarnfktkd1 Thanks for reporting this, I'm aware of this. We're going to address this with non-mutable queries soon, and I'll let you know when that's out. In the mean time, if you run window.localStorage.setItem('prisma-admin', ''), that'll regenerate the queries in the sidebar so you should be able to work again. This will remove any projects you have set up though, so if there are tokens etc. that you want to keep, be sure to copy them over somewhere before you clear the localStorage.