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