prisma / prisma1

💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
https://v1.prisma.io/docs/
Apache License 2.0
16.54k stars 862 forks source link

Unreadable MySQL Database Table Relation #1317

Closed radiegtya closed 6 years ago

radiegtya commented 6 years ago

Question In Self hosted local development, I found that table relation are unreadable. Please look image below

unreadable-mysql-graphcool

Inside those table there are A & B which is connecting between two tables, but the table name is not readable. So how to read that encrypted relation table name?

Why I Need this? I need this feature because sometime I want to make myself REST API that directly access to the database, and I want it to connect to graphcool func resolver that access to my very own API.

Expected behavior? I want readable table name relation

Please help, thank u

sorenbs commented 6 years ago

Great question @radiegtya and sorry about the slow response :-)

The name of the relation table is determined by the id of the relation. You can see all the relations and their ids in the graphcool database in the Relation table.

Hope that helps!

radiegtya commented 6 years ago

thank for the response, I'll learn it later. :)