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