StoicWanderer
Explore posts from serversPPrisma
•Created by StoicWanderer on 10/1/2024 in #help-and-questions
Tool to write schema by hand
Thanks, i think what I was looking for is MongoDB Compass 🙂
7 replies
PPrisma
•Created by adxvcasas on 5/3/2024 in #help-and-questions
Type 'string[]' is not assignable to type 'string'.ts(2322) when trying to create a form using Prism
Since MySQL doesn't support scalat lista natively, you could replace your schema with an
enum
if you definitely need to insert an array of strings into your databae with prisma.3 replies
PPrisma
•Created by khris on 4/8/2024 in #help-and-questions
i want a field to be an array in my mysql schema
@khris it also depends on what database provider xou use,but i think it should be at least an enum
4 replies
PPrisma
•Created by Mert Efe on 4/4/2024 in #help-and-questions
Raw query doesn't work
A BigInt usually has a trailing
n
at the end of the stringified number e.g. 2n
3 replies
PPrisma
•Created by francel on 3/23/2024 in #help-and-questions
Single table inheritance
For example, if you use MySQL as db and you have a User and a Post table and inside the User table you define a
type
discriminator column and inside the Post table you define a foreign key of userID referencing the User table and when querying Post table, you add the type
in the where
clause of Post
and add the include
keyword for {user:true} so it returns not only the posts but the user data as well.3 replies