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