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