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