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