david.fejes
david.fejes
WWasp-lang
Created by david.fejes on 3/13/2024 in #đŸ™‹questions
.wasp not recognising disambiguating relations
I will, greetings!
11 replies
WWasp-lang
Created by david.fejes on 3/13/2024 in #đŸ™‹questions
.wasp not recognising disambiguating relations
Thanks for solution, i left the ? accidentally.
11 replies
WWasp-lang
Created by david.fejes on 3/13/2024 in #đŸ™‹questions
.wasp not recognising disambiguating relations
11 replies
WWasp-lang
Created by david.fejes on 3/13/2024 in #đŸ™‹questions
.wasp not recognising disambiguating relations
[ Db !] error: Error validating field author in model PurchaseRequest: The relation field author on model PurchaseRequest is missing an opposite relation field on the model User. Either run prisma format or add it manually. [ Db !] --> schema.prisma:105 [ Db !] | [ Db !] 104 | receiptDate DateTime? [ Db !] 105 | author User @relation(name: "createdBy", fields: [authorId], references: [id]) [ Db !] 106 | authorId Int [ Db !] | [ Db !] error: Error validating field processedBy in model PurchaseRequest: The relation field processedBy on model PurchaseRequest is missing an opposite relation field on the model User. Either run prisma format or add it manually. [ Db !] --> schema.prisma:107 [ Db !] | [ Db !] 106 | authorId Int [ Db !] 107 | processedBy User @relation(name: "processedBy", fields: [processedById], references: [id]) [ Db !] 108 | processedById Int [ Db !] | [ Db !] [ Db !] Validation Error Count: 2 [ Db !] [Context: getDmmf] [ Db !] [ Db !] Prisma CLI Version : 4.16.2
11 replies
WWasp-lang
Created by david.fejes on 3/12/2024 in #đŸ™‹questions
Object relation doesn't compile to TypeScript
Thanks!
10 replies
WWasp-lang
Created by david.fejes on 3/12/2024 in #đŸ™‹questions
Object relation doesn't compile to TypeScript
10 replies
WWasp-lang
Created by david.fejes on 3/12/2024 in #đŸ™‹questions
Object relation doesn't compile to TypeScript
Since im overriding CRUD i have created function in tasks.js export const getMaterials: Materials.GetAllQuery<void, Material[]> = async (args, context) => { const { Material } = context.entities; return await Material.findMany({ include: { products: { include: { product: true, }, }, }, }); }; Here is github link: https://github.com/fejes99/MaterialPlanningApp/blob/main/src/materials/operations/tasks.ts
10 replies
WWasp-lang
Created by david.fejes on 3/11/2024 in #đŸ™‹questions
After migration flowbite-react is not working
Hvala! Svaka vam cast na Wasp-u, dosta je intuitivno i dosta mi ubrzava rad. Samo tako nastavite!
7 replies
WWasp-lang
Created by david.fejes on 3/11/2024 in #đŸ™‹questions
After migration flowbite-react is not working
It works! Hvala puno! :boi:
7 replies