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