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