Allows you to perform aggregations operations on a YTSMessageButton.
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 YTSMessageButtons.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, YTSMessageButtonCountArgs<DefaultArgs>>Arguments to filter YTSMessageButtons to count.
Create a YTSMessageButton.
Arguments to create a YTSMessageButton.
Create many YTSMessageButtons.
Optionalargs: SelectSubset<T, YTSMessageButtonCreateManyArgs<ExtArgs>>Arguments to create many YTSMessageButtons.
Create many YTSMessageButtons and returns the data saved in the database.
Optionalargs: SelectSubset<T, YTSMessageButtonCreateManyAndReturnArgs<ExtArgs>>Arguments to create many YTSMessageButtons.
// Create many YTSMessageButtons
const yTSMessageButton = await prisma.yTSMessageButton.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many YTSMessageButtons and only return the `dbId`
const yTSMessageButtonWithDbIdOnly = await prisma.yTSMessageButton.createManyAndReturn({
select: { dbId: 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 YTSMessageButton.
Arguments to delete one YTSMessageButton.
Delete zero or more YTSMessageButtons.
Optionalargs: SelectSubset<T, YTSMessageButtonDeleteManyArgs<ExtArgs>>Arguments to filter YTSMessageButtons to delete.
Find the first YTSMessageButton 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
Optionalargs: SelectSubset<T, YTSMessageButtonFindFirstArgs<ExtArgs>>Arguments to find a YTSMessageButton
Find the first YTSMessageButton 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
Optionalargs: SelectSubset<T, YTSMessageButtonFindFirstOrThrowArgs<ExtArgs>>Arguments to find a YTSMessageButton
Find zero or more YTSMessageButtons 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
Optionalargs: SelectSubset<T, YTSMessageButtonFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all YTSMessageButtons
const yTSMessageButtons = await prisma.yTSMessageButton.findMany()
// Get first 10 YTSMessageButtons
const yTSMessageButtons = await prisma.yTSMessageButton.findMany({ take: 10 })
// Only select the `dbId`
const yTSMessageButtonWithDbIdOnly = await prisma.yTSMessageButton.findMany({ select: { dbId: true } })
Find zero or one YTSMessageButton that matches the filter.
Arguments to find a YTSMessageButton
Find one YTSMessageButton that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a YTSMessageButton
Group by YTSMessageButton.
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 YTSMessageButton.
Arguments to update one YTSMessageButton.
Update zero or more YTSMessageButtons.
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 YTSMessageButtons and returns the data updated in the database.
Arguments to update many YTSMessageButtons.
// Update many YTSMessageButtons
const yTSMessageButton = await prisma.yTSMessageButton.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more YTSMessageButtons and only return the `dbId`
const yTSMessageButtonWithDbIdOnly = await prisma.yTSMessageButton.updateManyAndReturn({
select: { dbId: 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 YTSMessageButton.
Arguments to update or create a YTSMessageButton.
Fields of the YTSMessageButton model