Allows you to perform aggregations operations on a GuildGiveawayRoleBonus.
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 GuildGiveawayRoleBonuses.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildGiveawayRoleBonusCountArgs<DefaultArgs>>Arguments to filter GuildGiveawayRoleBonuses to count.
Create a GuildGiveawayRoleBonus.
Arguments to create a GuildGiveawayRoleBonus.
Create many GuildGiveawayRoleBonuses.
Optionalargs: SelectSubset<T, GuildGiveawayRoleBonusCreateManyArgs<ExtArgs>>Arguments to create many GuildGiveawayRoleBonuses.
Create many GuildGiveawayRoleBonuses and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildGiveawayRoleBonusCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildGiveawayRoleBonuses.
// Create many GuildGiveawayRoleBonuses
const guildGiveawayRoleBonus = await prisma.guildGiveawayRoleBonus.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildGiveawayRoleBonuses and only return the `dbId`
const guildGiveawayRoleBonusWithDbIdOnly = await prisma.guildGiveawayRoleBonus.createManyAndReturn({
select: { dbId: 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 GuildGiveawayRoleBonus.
Arguments to delete one GuildGiveawayRoleBonus.
Delete zero or more GuildGiveawayRoleBonuses.
Optionalargs: SelectSubset<T, GuildGiveawayRoleBonusDeleteManyArgs<ExtArgs>>Arguments to filter GuildGiveawayRoleBonuses to delete.
Find the first GuildGiveawayRoleBonus 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
Optionalargs: SelectSubset<T, GuildGiveawayRoleBonusFindFirstArgs<ExtArgs>>Arguments to find a GuildGiveawayRoleBonus
Find the first GuildGiveawayRoleBonus 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
Optionalargs: SelectSubset<T, GuildGiveawayRoleBonusFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildGiveawayRoleBonus
Find zero or more GuildGiveawayRoleBonuses 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
Optionalargs: SelectSubset<T, GuildGiveawayRoleBonusFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildGiveawayRoleBonuses
const guildGiveawayRoleBonuses = await prisma.guildGiveawayRoleBonus.findMany()
// Get first 10 GuildGiveawayRoleBonuses
const guildGiveawayRoleBonuses = await prisma.guildGiveawayRoleBonus.findMany({ take: 10 })
// Only select the `dbId`
const guildGiveawayRoleBonusWithDbIdOnly = await prisma.guildGiveawayRoleBonus.findMany({ select: { dbId: true } })
Find zero or one GuildGiveawayRoleBonus that matches the filter.
Arguments to find a GuildGiveawayRoleBonus
Find one GuildGiveawayRoleBonus that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildGiveawayRoleBonus
Group by GuildGiveawayRoleBonus.
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 GuildGiveawayRoleBonus.
Arguments to update one GuildGiveawayRoleBonus.
Update zero or more GuildGiveawayRoleBonuses.
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 GuildGiveawayRoleBonuses and returns the data updated in the database.
Arguments to update many GuildGiveawayRoleBonuses.
// Update many GuildGiveawayRoleBonuses
const guildGiveawayRoleBonus = await prisma.guildGiveawayRoleBonus.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildGiveawayRoleBonuses and only return the `dbId`
const guildGiveawayRoleBonusWithDbIdOnly = await prisma.guildGiveawayRoleBonus.updateManyAndReturn({
select: { dbId: 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 GuildGiveawayRoleBonus.
Arguments to update or create a GuildGiveawayRoleBonus.
// Update or create a GuildGiveawayRoleBonus
const guildGiveawayRoleBonus = await prisma.guildGiveawayRoleBonus.upsert({
create: {
// ... data to create a GuildGiveawayRoleBonus
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the GuildGiveawayRoleBonus we want to update
}
})
Fields of the GuildGiveawayRoleBonus model