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