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