Allows you to perform aggregations operations on a ReactionRoleButton.
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 ReactionRoleButtons.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: Subset<T, ReactionRoleButtonCountArgs>Arguments to filter ReactionRoleButtons to count.
Create a ReactionRoleButton.
Arguments to create a ReactionRoleButton.
Create many ReactionRoleButtons.
Optional
args: SelectSubset<T, ReactionRoleButtonCreateManyArgs<ExtArgs>>Arguments to create many ReactionRoleButtons.
Create many ReactionRoleButtons and returns the data saved in the database.
Optional
args: SelectSubset<T, ReactionRoleButtonCreateManyAndReturnArgs<ExtArgs>>Arguments to create many ReactionRoleButtons.
// Create many ReactionRoleButtons
const reactionRoleButton = await prisma.reactionRoleButton.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many ReactionRoleButtons and only return the `Id`
const reactionRoleButtonWithIdOnly = await prisma.reactionRoleButton.createManyAndReturn({
select: { Id: 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 ReactionRoleButton.
Arguments to delete one ReactionRoleButton.
Delete zero or more ReactionRoleButtons.
Optional
args: SelectSubset<T, ReactionRoleButtonDeleteManyArgs<ExtArgs>>Arguments to filter ReactionRoleButtons to delete.
Find the first ReactionRoleButton 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
Optional
args: SelectSubset<T, ReactionRoleButtonFindFirstArgs<ExtArgs>>Arguments to find a ReactionRoleButton
Find the first ReactionRoleButton 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
Optional
args: SelectSubset<T, ReactionRoleButtonFindFirstOrThrowArgs<ExtArgs>>Arguments to find a ReactionRoleButton
Find zero or more ReactionRoleButtons 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
Optional
args: SelectSubset<T, ReactionRoleButtonFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all ReactionRoleButtons
const reactionRoleButtons = await prisma.reactionRoleButton.findMany()
// Get first 10 ReactionRoleButtons
const reactionRoleButtons = await prisma.reactionRoleButton.findMany({ take: 10 })
// Only select the `Id`
const reactionRoleButtonWithIdOnly = await prisma.reactionRoleButton.findMany({ select: { Id: true } })
Find zero or one ReactionRoleButton that matches the filter.
Arguments to find a ReactionRoleButton
Find one ReactionRoleButton that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a ReactionRoleButton
Group by ReactionRoleButton.
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 ReactionRoleButton.
Arguments to update one ReactionRoleButton.
Update zero or more ReactionRoleButtons.
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 ReactionRoleButtons and returns the data updated in the database.
Arguments to update many ReactionRoleButtons.
// Update many ReactionRoleButtons
const reactionRoleButton = await prisma.reactionRoleButton.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more ReactionRoleButtons and only return the `Id`
const reactionRoleButtonWithIdOnly = await prisma.reactionRoleButton.updateManyAndReturn({
select: { Id: 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 ReactionRoleButton.
Arguments to update or create a ReactionRoleButton.
// Update or create a ReactionRoleButton
const reactionRoleButton = await prisma.reactionRoleButton.upsert({
create: {
// ... data to create a ReactionRoleButton
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the ReactionRoleButton we want to update
}
})
Fields of the ReactionRoleButton model