prisma-factory
prisma-factory copied to clipboard
Factories ❤️ Prisma
This parent/children schema ```prisma model Page { id Int @id @default(autoincrement()) title String? parentId Int? parent Page? @relation("Parent", fields: [parentId], references: [id]) children Page[] @relation("Parent") } ``` will cause the...
Hello, thanks for making this - it's super useful! The Prisma types for nested creates allow for passing an array in the case of a has-many relation, but `prisma-factory` appears...
Hey there, Thanks for the work on this package - looks great! 😁 Any chance you'd know why Jest is struggling to find the generated `index.js`? I get the following...
I'm using this package on a fastify, prisma and node-tap project and it gives me this error: `Error: Cannot find module '..../node_modules/prisma-factory/dist/generated.js'`. I've noticed that in prisma-factory's pacakge.json is defined...
This fixes this issue: https://github.com/echobind/prisma-factory/issues/13 and lets us use dates and functions that return dates as defaults in our factories.
UncheckedInputTypes allow us to pass ids to the prisma model rather than objects An example: Currently we connect, ```ts export const createConnection = (userId, type) => { const Factory =...
Might not want to allow it, but if so should update the type definition to explicitly disallow it or throw a more helpful error
Amazing package. Great Work. Well built. Very appreciated.