piscopancer
Explore posts from serversPPrisma
•Created by piscopancer on 11/17/2024 in #help-and-questions
Infer type from create query?
here's the function that creates a new
Schedule
. Attention to the shape, not data
I want to get the type of the Lesson
of the shape in this function. so it has to look like this
so that I can use somewhere else
Is there a utility type in prisma to infer this shape?7 replies
PPrisma
•Created by piscopancer on 11/15/2024 in #help-and-questions
narrow down String type using prisma client's extension?
can I explain to prisma client and typescript that this particular field needs to be a string union?
4 replies
PPrisma
•Created by piscopancer on 11/15/2024 in #help-and-questions
`Prisma.skip` seen as `undefined`?
5 replies
PPrisma
•Created by piscopancer on 11/12/2024 in #help-and-questions
[React Native] DB duplicated to the emulator. Intentional?
4 replies
PPrisma
•Created by piscopancer on 11/12/2024 in #help-and-questions
[React Native] Creating client with Supabase crashes
with db.ts like so (pretty basic)
the app crashes after calling this function
with the following schema
11 replies
PPrisma
•Created by piscopancer on 11/12/2024 in #help-and-questions
Prisma extension in vscode too slow
vscode: 1.95.2
prisma ext: v5.22.0
10 replies
PPrisma
•Created by piscopancer on 6/14/2024 in #help-and-questions
Get type of `create` with `connect`?
I would like to get the type for object I pass to
create
function. How can I do that? I assume I should use internal Prisma utility types, right?
The trick here is that tutor
is a required property so it must be either created or connected (in my case, connected)2 replies