Natalia
Yiğit Rüzgar
12/10/2020, 10:41 AMJustin Ellingwood
12/10/2020, 4:41 PMKJReactor
12/11/2020, 10:18 AMSlackbot
12/14/2020, 9:51 AMVeselin Stoyanov
12/14/2020, 9:53 AMKJReactor
12/14/2020, 11:54 AMAyobanjo Funsho
12/15/2020, 8:51 PMPieter
12/15/2020, 9:46 PMtylim
12/16/2020, 8:07 AMtemitayo ogunlolu
12/16/2020, 9:53 PMtemitayo ogunlolu
12/17/2020, 12:11 PMPieter
12/17/2020, 12:19 PMfs
module is not found. This happens while generating SSG pages with nextjs, so its not running in a browser, but still doesnt find fs for some reason. I only get the issue when I change my prisma output from the default output. Did the fix in 2.13.0 about accessing types in frontend only get done for default client output?Robin
12/17/2020, 1:35 PMnode_modules
folder. When I check my new code in, this is not committed. So when I deploy my app to the server, the server does not have the new code until I run "npx prisma generate" there, too, right?Robin
12/17/2020, 1:35 PMAlex Ruheni
Jaafari El Housseine
12/18/2020, 7:01 AMRobin
12/18/2020, 12:17 PMPieter
12/18/2020, 3:05 PMHassan Khan
12/19/2020, 12:50 PMIsidoro Ferreiro
12/20/2020, 10:28 PMBruno Casado
12/21/2020, 4:31 PMmodel Gene {
id Int @default(autoincrement()) @id
name String @unique
heritage String
createdAt DateTime @default(now())
modifiedAt DateTime @default(now())
@@map(name: "genes")
}
model Diagnose {
id Int @default(autoincrement()) @id
report_id String
client_name String
gender String
birthdate String
in_negative Boolean
createdAt DateTime @default(now())
modifiedAt DateTime @default(now())
variants GeneVariants[]
@@unique([report_id])
@@map(name: "diagnosis")
}
model GeneVariants {
id Int @default(autoincrement()) @id
zygosity String
localization String
coding String
protein String
classification String
transcrito String
diagnose Diagnose @relation(fields: [diagnose_id], references: [id])
diagnose_id Int
gene Gene @relation(fields: [gene_id], references: [id])
gene_id Int
createdAt DateTime @default(now())
modifiedAt DateTime @default(now())
@@map(name: "diagnosis_genes_variants")
}
model GeneReferences {
id Int @default(autoincrement()) @id
explanation String
gene Gene @relation(fields: [gene_id], references: [id])
gene_id Int
gender String
createdAt DateTime @default(now())
modifiedAt DateTime @default(now())
interpretation GeneInterpretations[]
@@map(name: "gene_references")
}
query example:
public async getDiagnose(report_id: string): Promise<any> {
const result = await this.database.instance.diagnose.findFirst({
include: {
variants: {
include: {
gene: {
include: {
GeneInterpretations: {
where: {
gender: 'how_filter_this_using_the_gender_diagnoses_top_level?'
}
}
}
},
}
},
},
where: {
report_id: report_id
}
});
return result;
}
The question: how can i filter GeneInterpretations passing the top level gender?Jaafari El Housseine
12/22/2020, 10:49 AM["java.lang.UnsupportedOperationException: empty.head\n\tat scala.collection.immutable.Vector.head(Vector.scala:185)\n\tat com.prisma.deploy.connector.mysql.database.MySqlJdbcDeployDatabaseMutationBuilder.$anonfun$deleteRelationColumn$1(MysqlJdbcDeployDatabaseMutationBuilder.scala:135)\n\tat slick.basic.BasicBackend$DatabaseDef.$anonfun$runInContextInline$1(BasicBackend.scala:172)\n\tat scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:303)\n\tat scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:37)\n\tat scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)\n\tat akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)\n\tat akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:91)\n\tat scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)\n\tat scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81)\n\tat akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:91)\n\tat akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)\n\tat akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:44)\n\tat akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)\n\tat akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)\n\tat akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)\n\tat akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)\n"]
Prisma 1.34 fails to run a migration. I tried all I can and still same issue. I don’t want to drop tables & re-build from scratch againYiğit Rüzgar
12/22/2020, 11:54 AMJaafari El Housseine
12/22/2020, 2:18 PMJOINS
why is that?Yiğit Rüzgar
12/22/2020, 3:09 PMMaciek K
12/22/2020, 4:45 PM