Allows you to perform aggregations operations on a Polls.
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 Polls.
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, PollsCountArgs>Arguments to filter Polls to count.
Create a Polls.
Arguments to create a Polls.
Create many Polls.
Optional
args: SelectSubset<T, PollsCreateManyArgs<ExtArgs>>Arguments to create many Polls.
Create many Polls and returns the data saved in the database.
Optional
args: SelectSubset<T, PollsCreateManyAndReturnArgs<ExtArgs>>Arguments to create many Polls.
// Create many Polls
const polls = await prisma.polls.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many Polls and only return the `Id`
const pollsWithIdOnly = await prisma.polls.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 Polls.
Arguments to delete one Polls.
Delete zero or more Polls.
Optional
args: SelectSubset<T, PollsDeleteManyArgs<ExtArgs>>Arguments to filter Polls to delete.
Find the first Polls 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, PollsFindFirstArgs<ExtArgs>>Arguments to find a Polls
Find the first Polls 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, PollsFindFirstOrThrowArgs<ExtArgs>>Arguments to find a Polls
Find zero or more Polls 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, PollsFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one Polls that matches the filter.
Arguments to find a Polls
Find one Polls that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a Polls
Group by Polls.
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 Polls.
Arguments to update one Polls.
Update zero or more Polls.
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 Polls and returns the data updated in the database.
Arguments to update many Polls.
// Update many Polls
const polls = await prisma.polls.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more Polls and only return the `Id`
const pollsWithIdOnly = await prisma.polls.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 Polls.
Arguments to update or create a Polls.
Fields of the Polls model