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