testas
PPrisma
•Created by testas on 6/6/2024 in #help-and-questions
Help Needed with Nested CreateMany!
I'm concerned that returning tons of records can be very costly/inefficient. I don't see an option to select specific properties to return using createManyAndReturn, but maybe i'm missing it? is there a way to for example select to return only IDs?
10 replies
PPrisma
•Created by testas on 6/6/2024 in #help-and-questions
Help Needed with Nested CreateMany!
Thanks for the suggestion. The cavieat with your approach is, createMany doesn't return the records. B\ut I re-read the docs and found this https://www.prisma.io/docs/orm/prisma-client/queries/crud#create-records-and-connect-or-create-related-records
It seems like a more efficient way to go about it!
It seems like a new thing, as it's only available at 5.14
10 replies
PPrisma
•Created by testas on 6/6/2024 in #help-and-questions
Help Needed with Nested CreateMany!
Here’s the minimal version of my Prisma schema:
I had to separate it due to too much text limitation.
10 replies