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