Allows you to perform aggregations operations on a PollAnswers.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Select which aggregations you would like to apply and on what fields.
Count the number of PollAnswers.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: Subset<T, PollAnswersCountArgs>Arguments to filter PollAnswers to count.
Create a PollAnswers.
Arguments to create a PollAnswers.
Create many PollAnswers.
Optional
args: SelectSubset<T, PollAnswersCreateManyArgs<ExtArgs>>Arguments to create many PollAnswers.
Create many PollAnswers and returns the data saved in the database.
Optional
args: SelectSubset<T, PollAnswersCreateManyAndReturnArgs<ExtArgs>>Arguments to create many PollAnswers.
// Create many PollAnswers
const pollAnswers = await prisma.pollAnswers.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many PollAnswers and only return the `Id`
const pollAnswersWithIdOnly = await prisma.pollAnswers.createManyAndReturn({
select: { Id: true },
data: [
// ... provide data here
]
})
Note, that providing `undefined` is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Delete a PollAnswers.
Arguments to delete one PollAnswers.
Delete zero or more PollAnswers.
Optional
args: SelectSubset<T, PollAnswersDeleteManyArgs<ExtArgs>>Arguments to filter PollAnswers to delete.
Find the first PollAnswers that matches the filter.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: SelectSubset<T, PollAnswersFindFirstArgs<ExtArgs>>Arguments to find a PollAnswers
Find the first PollAnswers that matches the filter or
throw PrismaKnownClientError
with P2025
code if no matches were found.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: SelectSubset<T, PollAnswersFindFirstOrThrowArgs<ExtArgs>>Arguments to find a PollAnswers
Find zero or more PollAnswers that matches the filter.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: SelectSubset<T, PollAnswersFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one PollAnswers that matches the filter.
Arguments to find a PollAnswers
Find one PollAnswers that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a PollAnswers
Group by PollAnswers.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Group by arguments.
Update one PollAnswers.
Arguments to update one PollAnswers.
Update zero or more PollAnswers.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Arguments to update one or more rows.
Update zero or more PollAnswers and returns the data updated in the database.
Arguments to update many PollAnswers.
// Update many PollAnswers
const pollAnswers = await prisma.pollAnswers.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more PollAnswers and only return the `Id`
const pollAnswersWithIdOnly = await prisma.pollAnswers.updateManyAndReturn({
select: { Id: true },
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
Note, that providing `undefined` is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Create or update one PollAnswers.
Arguments to update or create a PollAnswers.
Fields of the PollAnswers model