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