Allows you to perform aggregations operations on a ReactionRoleSelectmenu.
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 ReactionRoleSelectmenus.
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, ReactionRoleSelectmenuCountArgs>Arguments to filter ReactionRoleSelectmenus to count.
Create a ReactionRoleSelectmenu.
Arguments to create a ReactionRoleSelectmenu.
Create many ReactionRoleSelectmenus.
Optional
args: SelectSubset<T, ReactionRoleSelectmenuCreateManyArgs<ExtArgs>>Arguments to create many ReactionRoleSelectmenus.
Create many ReactionRoleSelectmenus and returns the data saved in the database.
Optional
args: SelectSubset<T, ReactionRoleSelectmenuCreateManyAndReturnArgs<ExtArgs>>Arguments to create many ReactionRoleSelectmenus.
// Create many ReactionRoleSelectmenus
const reactionRoleSelectmenu = await prisma.reactionRoleSelectmenu.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many ReactionRoleSelectmenus and only return the `Id`
const reactionRoleSelectmenuWithIdOnly = await prisma.reactionRoleSelectmenu.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 ReactionRoleSelectmenu.
Arguments to delete one ReactionRoleSelectmenu.
Delete zero or more ReactionRoleSelectmenus.
Optional
args: SelectSubset<T, ReactionRoleSelectmenuDeleteManyArgs<ExtArgs>>Arguments to filter ReactionRoleSelectmenus to delete.
Find the first ReactionRoleSelectmenu 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, ReactionRoleSelectmenuFindFirstArgs<ExtArgs>>Arguments to find a ReactionRoleSelectmenu
Find the first ReactionRoleSelectmenu 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, ReactionRoleSelectmenuFindFirstOrThrowArgs<ExtArgs>>Arguments to find a ReactionRoleSelectmenu
Find zero or more ReactionRoleSelectmenus 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, ReactionRoleSelectmenuFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all ReactionRoleSelectmenus
const reactionRoleSelectmenus = await prisma.reactionRoleSelectmenu.findMany()
// Get first 10 ReactionRoleSelectmenus
const reactionRoleSelectmenus = await prisma.reactionRoleSelectmenu.findMany({ take: 10 })
// Only select the `Id`
const reactionRoleSelectmenuWithIdOnly = await prisma.reactionRoleSelectmenu.findMany({ select: { Id: true } })
Find zero or one ReactionRoleSelectmenu that matches the filter.
Arguments to find a ReactionRoleSelectmenu
Find one ReactionRoleSelectmenu that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a ReactionRoleSelectmenu
Group by ReactionRoleSelectmenu.
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 ReactionRoleSelectmenu.
Arguments to update one ReactionRoleSelectmenu.
Update zero or more ReactionRoleSelectmenus.
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 ReactionRoleSelectmenus and returns the data updated in the database.
Arguments to update many ReactionRoleSelectmenus.
// Update many ReactionRoleSelectmenus
const reactionRoleSelectmenu = await prisma.reactionRoleSelectmenu.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more ReactionRoleSelectmenus and only return the `Id`
const reactionRoleSelectmenuWithIdOnly = await prisma.reactionRoleSelectmenu.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 ReactionRoleSelectmenu.
Arguments to update or create a ReactionRoleSelectmenu.
// Update or create a ReactionRoleSelectmenu
const reactionRoleSelectmenu = await prisma.reactionRoleSelectmenu.upsert({
create: {
// ... data to create a ReactionRoleSelectmenu
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the ReactionRoleSelectmenu we want to update
}
})
Fields of the ReactionRoleSelectmenu model