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