b0ngl0rd
PPrisma
•Created by b0ngl0rd on 10/17/2024 in #help-and-questions
Argument `where` of type *WhereUniqueInput needs at least one of `id` arguments.
looks like prisma only reports the first in the batch as the problem, when it could be any of them.
12 replies
PPrisma
•Created by b0ngl0rd on 10/17/2024 in #help-and-questions
Argument `where` of type *WhereUniqueInput needs at least one of `id` arguments.
is the cause. so this is because i misunderstood the docs or something on how to make a query optional.
12 replies
PPrisma
•Created by b0ngl0rd on 10/17/2024 in #help-and-questions
Argument `where` of type *WhereUniqueInput needs at least one of `id` arguments.
after digging on how to enable debug logs for prisma, i found out that it was another query responsible.
12 replies
PPrisma
•Created by b0ngl0rd on 10/17/2024 in #help-and-questions
Argument `where` of type *WhereUniqueInput needs at least one of `id` arguments.
so it turns out that prisma won't always return the correct query responsible for throwing an error when processing a transaction.
12 replies
PPrisma
•Created by b0ngl0rd on 10/17/2024 in #help-and-questions
Argument `where` of type *WhereUniqueInput needs at least one of `id` arguments.
12 replies
PPrisma
•Created by b0ngl0rd on 10/17/2024 in #help-and-questions
Argument `where` of type *WhereUniqueInput needs at least one of `id` arguments.
It's the object inside that array, yes. In the bigger picture, this is a piece of a transaction, hence the array. However, the error points to this exact query.
12 replies
PPrisma
•Created by b0ngl0rd on 10/17/2024 in #help-and-questions
Argument `where` of type *WhereUniqueInput needs at least one of `id` arguments.
12 replies
Error with AppRouter type mismatch in Deno
It might be typescript related. I'm also having tons of issues with autocomplete in a monorepo with a NextJS+tRPC project and api client project. I'm instead getting either "any" type or a typescript property overwrite error depending on whether I import directly or through a barrel file.
8 replies
PPrisma
•Created by b0ngl0rd on 8/17/2024 in #help-and-questions
Implicit many-to-many problems
Turns out, for whatever reason the input to
createMany
doesn't include relational fields? I'm too busy to look into it further, but here is the updated code which succeeded for anyone that might be wondering:
4 replies