Phil Bookst
12/06/2021, 2:06 PMnikolasburk
create query with Prisma Client without using a select option, the answer is yes though 🙂Phil Bookst
12/06/2021, 2:40 PMawait prisma.profile.create({
data,
select: null,
});nikolasburk
select in the first place, so this should be enough:
await prisma.profile.create({
data,
});Phil Bookst
12/06/2021, 4:16 PMnikolasburk
SELECT statements on the SQL-level? Sorry, this wasn’t clear to me from your initial question.
Could you elaborate a bit on your use case for this? I believe entirely removing the SELECT is not possible right now, but it would be great if you could open a feature request for this functionality. If you care about the minimum data being selected in the DB query, I guess only selecting the @id field would be the best approach.Phil Bookst
12/06/2021, 4:29 PM