question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Studio version does not match that stated in Prisma Studio Releases

See original GitHub issue

Bug 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

  1. Install prisma 3.8.1.
  2. Create a schema with two models with an implicit many-many between them
  3. migrate database
  4. run prisma studio
  5. 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:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
janpiocommented, Jan 26, 2022

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.

1reaction
IrisMurraycommented, Jan 26, 2022

Ok, that is slightly confusing because of the line

This version ships with Prisma v3.8.0

Is that the included prisma version with the electron build of studio?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found