paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
680 stars 55 forks source link

latest versions are not published to npm #245

Open terion-name opened 2 years ago

terion-name commented 2 years ago

npm packages are outdated. e.g.: https://www.npmjs.com/package/@paljs/generator — 4.0.12 https://www.npmjs.com/package/@paljs/plugins — 4.0.8

terion-name commented 2 years ago

@AhmedElywa pleeeeease publish latest versions to npm

AhmedElywa commented 2 years ago

I was out last three days I have an error in building I will fix it when i back You can expect to have the new release tomorrow morning EU Time

terion-name commented 2 years ago

@AhmedElywa thank you!

terion-name commented 2 years ago

@AhmedElywa pleeeeease 🙏

AhmedElywa commented 2 years ago

@terion-name sent the last version 4.0.13 with the last prisma version 3.6.0 why you need it no change happen

terion-name commented 2 years ago

@AhmedElywa we've updated to prisma 3.6.0 recently in one of my apps in develop. And we've discovered that generateInputsString, even without any filters and postprocessing, missing some inputs that are required by prisma. Thought it was some mismatch in prisma engine and generator versions (don't know if it was there prior, updating deps or rolling back in this case is a huge pain).

Session model has many Acts Act has one Document

Act model:

model Act {
  id String @id @default(cuid())

  session Session @relation(name: "ActSession", fields: [sessionId], references: [id])
  sessionId String

  document DocumentsDocument @relation(name: "ActDocumentsDocument", fields: [docId], references: [id])
  docId String

  accepted Boolean @default(false)
  isManual Boolean @default(false)

  votes Vote[] @relation(name:"VoteAct")

  createdAt DateTime @default(now())
  updatedAt DateTime @default(now())
}

in updateSession mutation in SessionUpdateInput there is acts → createOrConnect → create (of type ActUncheckedCreateWithoutSessionInput) that has no document field:

photo_2021-12-06 20 09 44

But it is required there by Prisma (should be something like DocumentUncheckedCreateNestedWithoutArticleInput):

Argument document for data.acts.connectOrCreate.0.create.document is missing.

photo_2021-12-06 20 13 14

Meanwhile acts → create is fine and has document field

AhmedElywa commented 2 years ago

did the new release fixed the issue or still there I already have the same issue for my app

terion-name commented 2 years ago

@AhmedElywa nope, after update inputs are the same (

terion-name commented 2 years ago

@AhmedElywa it seems that it is on prisma's side :(

https://github.com/prisma/prisma/issues/9989