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