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