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