Studio version does not match that stated in Prisma Studio Releases
See original GitHub issueBug description
The version of studio stated to be included with Prisma 3.8.0 is 0.454.0. Prisma 3.8.0 and 3.8.1 released with studio version 0.452.0 https://github.com/prisma/prisma/blob/d261cd7360542001bc714b0f1c5af6fe331a09e6/packages/cli/package.json#L75.
This means that Release 3.8.0 did not fix #802 “BigInt breaks studio”.
On running studio and selecting a relation with a bigint identifier we get error TypeError: BigInt value can't be serialized in JSON
How to reproduce
- Install prisma 3.8.1.
- Create a schema with two models with an implicit many-many between them
- migrate database
- run prisma studio
- try to access the related model from the other
Expected behavior
Expect to be able to use many-many in prisma studio with bigint ids
Prisma information
model AppClient {
id BigInt @id @default(autoincrement())
clientId String @map("client_id") @unique
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @default(now()) @updatedAt @map("updated_at")
scopes Scope[] @relation(name: "app_client_scope")
@@map("app_client")
}
model Scope {
id BigInt @id @default(autoincrement())
scope String @unique
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @default(now()) @updatedAt @map("updated_at")
appClients AppClient[] @relation(name: "app_client_scope")
@@map("scope")
}
Environment & setup
- OS: Ubuntu 20.04
- Database: PostgreSQL
- Node.js version: 16.13.12
Prisma Version
prisma : 3.8.1
@prisma/client : 3.8.1
Current platform : debian-openssl-1.1.x
Query Engine (Node-API) : libquery-engine 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node)
Migration Engine : migration-engine-cli 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine : introspection-core 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary : prisma-fmt 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Default Engines Hash : 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f
Studio : 0.452.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Prisma CLI Command Reference
This page gives an overview of all available Prisma CLI commands, explains their options and shows numerous usage examples.
Read more >Prisma Studio | Next-generation ORM for Node.js and ...
The easiest way to explore and manipulate your data in all of your Prisma projects. $ npx prisma studio. Prisma Studio UI. Prisma...
Read more >Prisma Studio (Reference)
Prisma Studio is a visual editor for the data in your database. Note that Prisma Studio is not open source but you can...
Read more >A Visual Interface for Your Database | Prisma Studio
Prisma Studio helps developers manage their application data. We're excited to share that it is now part of the stable Prisma release.
Read more >Upgrading versions (Guides) - Prisma
Do not use the dev distribution tag in production - wait until the official release that contains the features and fixes you are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ahhh, now I see it. It was hidden for me under all the internal drafts that exist. Seems someone made a mistake there and published the wrong draft. I will double check.
Ok, that is slightly confusing because of the line
Is that the included prisma version with the electron build of studio?