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