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