Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Relation link:TABLE not working #5041

Closed
alapini opened this issue Mar 12, 2020 · 1 comment
Closed

Relation link:TABLE not working #5041

alapini opened this issue Mar 12, 2020 · 1 comment
Labels
status/stale Marked as state by the GitHub stalebot

Comments

@alapini
Copy link

alapini commented Mar 12, 2020

Describe the bug
I'm not sure if I'm missing something but I can't generate a simple many-to-many relationship with prisma 1.34.10. It throws ✖ Valid values for the argument link are: INLINE.

To Reproduce
Steps to reproduce the behavior (MacOS):

$brew tap prisma/prisma
$brew install prisma
$prisma --version
Prisma CLI version: prisma/1.34.10 (darwin-x64) node-v13.9.0
Prisma server version: 1.34.10
prisma init testapp

Choose : Create new database
DB : MySQLor PostgreSQL
Generated prisma client : Don't generate

Replace the datamodel.prisma content by

type Category {
  id: ID! @id
  posts: [Post!]! @relation(link: TABLE, name: "MyRelation")
}

type Post {
  id: ID! @id
  categories: [Category!]! @relation(link: TABLE, name: "MyRelation")
}
cd testapp
docker-compose up -d
prisma deploy

Expected behavior
I expect prisma to generate the DB and the graphQL server as explained in the docs

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

Versions (please complete the following information):

  • Connector: Postgres, MySQL
  • Prisma Server: 1.34.10
  • prisma CLI: prisma/1.34.10 (darwin-x64) node-v13.9.0
  • OS: OS X Mojave
@stale
Copy link

stale bot commented Apr 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale Marked as state by the GitHub stalebot label Apr 26, 2020
@stale stale bot closed this as completed May 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/stale Marked as state by the GitHub stalebot
Projects
None yet
Development

No branches or pull requests

1 participant