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