Allows you to perform aggregations operations on a GuildModeration.
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 GuildModerations.
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, GuildModerationCountArgs>Arguments to filter GuildModerations to count.
Create a GuildModeration.
Arguments to create a GuildModeration.
Create many GuildModerations.
Optional
args: SelectSubset<T, GuildModerationCreateManyArgs<ExtArgs>>Arguments to create many GuildModerations.
Create many GuildModerations and returns the data saved in the database.
Optional
args: SelectSubset<T, GuildModerationCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildModerations.
// Create many GuildModerations
const guildModeration = await prisma.guildModeration.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildModerations and only return the `Id`
const guildModerationWithIdOnly = await prisma.guildModeration.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 GuildModeration.
Arguments to delete one GuildModeration.
Delete zero or more GuildModerations.
Optional
args: SelectSubset<T, GuildModerationDeleteManyArgs<ExtArgs>>Arguments to filter GuildModerations to delete.
Find the first GuildModeration 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, GuildModerationFindFirstArgs<ExtArgs>>Arguments to find a GuildModeration
Find the first GuildModeration 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, GuildModerationFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildModeration
Find zero or more GuildModerations 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, GuildModerationFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildModerations
const guildModerations = await prisma.guildModeration.findMany()
// Get first 10 GuildModerations
const guildModerations = await prisma.guildModeration.findMany({ take: 10 })
// Only select the `Id`
const guildModerationWithIdOnly = await prisma.guildModeration.findMany({ select: { Id: true } })
Find zero or one GuildModeration that matches the filter.
Arguments to find a GuildModeration
Find one GuildModeration that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildModeration
Group by GuildModeration.
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 GuildModeration.
Arguments to update one GuildModeration.
Update zero or more GuildModerations.
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 GuildModerations and returns the data updated in the database.
Arguments to update many GuildModerations.
// Update many GuildModerations
const guildModeration = await prisma.guildModeration.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildModerations and only return the `Id`
const guildModerationWithIdOnly = await prisma.guildModeration.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 GuildModeration.
Arguments to update or create a GuildModeration.
Fields of the GuildModeration model