Allows you to perform aggregations operations on a GuildUserModerationSettingBan.
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 GuildUserModerationSettingBans.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildUserModerationSettingBanCountArgs>Arguments to filter GuildUserModerationSettingBans to count.
Create a GuildUserModerationSettingBan.
Arguments to create a GuildUserModerationSettingBan.
Create many GuildUserModerationSettingBans.
Optionalargs: SelectSubset<T, GuildUserModerationSettingBanCreateManyArgs<ExtArgs>>Arguments to create many GuildUserModerationSettingBans.
Create many GuildUserModerationSettingBans and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildUserModerationSettingBanCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildUserModerationSettingBans.
// Create many GuildUserModerationSettingBans
const guildUserModerationSettingBan = await prisma.guildUserModerationSettingBan.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildUserModerationSettingBans and only return the `Id`
const guildUserModerationSettingBanWithIdOnly = await prisma.guildUserModerationSettingBan.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 GuildUserModerationSettingBan.
Arguments to delete one GuildUserModerationSettingBan.
Delete zero or more GuildUserModerationSettingBans.
Optionalargs: SelectSubset<T, GuildUserModerationSettingBanDeleteManyArgs<ExtArgs>>Arguments to filter GuildUserModerationSettingBans to delete.
Find the first GuildUserModerationSettingBan 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
Optionalargs: SelectSubset<T, GuildUserModerationSettingBanFindFirstArgs<ExtArgs>>Arguments to find a GuildUserModerationSettingBan
Find the first GuildUserModerationSettingBan 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
Optionalargs: SelectSubset<T, GuildUserModerationSettingBanFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildUserModerationSettingBan
Find zero or more GuildUserModerationSettingBans 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
Optionalargs: SelectSubset<T, GuildUserModerationSettingBanFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildUserModerationSettingBans
const guildUserModerationSettingBans = await prisma.guildUserModerationSettingBan.findMany()
// Get first 10 GuildUserModerationSettingBans
const guildUserModerationSettingBans = await prisma.guildUserModerationSettingBan.findMany({ take: 10 })
// Only select the `Id`
const guildUserModerationSettingBanWithIdOnly = await prisma.guildUserModerationSettingBan.findMany({ select: { Id: true } })
Find zero or one GuildUserModerationSettingBan that matches the filter.
Arguments to find a GuildUserModerationSettingBan
Find one GuildUserModerationSettingBan that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildUserModerationSettingBan
Group by GuildUserModerationSettingBan.
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 GuildUserModerationSettingBan.
Arguments to update one GuildUserModerationSettingBan.
Update zero or more GuildUserModerationSettingBans.
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 GuildUserModerationSettingBans and returns the data updated in the database.
Arguments to update many GuildUserModerationSettingBans.
// Update many GuildUserModerationSettingBans
const guildUserModerationSettingBan = await prisma.guildUserModerationSettingBan.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildUserModerationSettingBans and only return the `Id`
const guildUserModerationSettingBanWithIdOnly = await prisma.guildUserModerationSettingBan.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 GuildUserModerationSettingBan.
Arguments to update or create a GuildUserModerationSettingBan.
// Update or create a GuildUserModerationSettingBan
const guildUserModerationSettingBan = await prisma.guildUserModerationSettingBan.upsert({
create: {
// ... data to create a GuildUserModerationSettingBan
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the GuildUserModerationSettingBan we want to update
}
})
Fields of the GuildUserModerationSettingBan model