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