Allows you to perform aggregations operations on a GuildGiveaway.
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 GuildGiveaways.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildGiveawayCountArgs<DefaultArgs>>Arguments to filter GuildGiveaways to count.
Create a GuildGiveaway.
Arguments to create a GuildGiveaway.
Create many GuildGiveaways.
Optionalargs: SelectSubset<T, GuildGiveawayCreateManyArgs<ExtArgs>>Arguments to create many GuildGiveaways.
Create many GuildGiveaways and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildGiveawayCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildGiveaways.
// Create many GuildGiveaways
const guildGiveaway = await prisma.guildGiveaway.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildGiveaways and only return the `dbId`
const guildGiveawayWithDbIdOnly = await prisma.guildGiveaway.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 GuildGiveaway.
Arguments to delete one GuildGiveaway.
Delete zero or more GuildGiveaways.
Optionalargs: SelectSubset<T, GuildGiveawayDeleteManyArgs<ExtArgs>>Arguments to filter GuildGiveaways to delete.
Find the first GuildGiveaway 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, GuildGiveawayFindFirstArgs<ExtArgs>>Arguments to find a GuildGiveaway
Find the first GuildGiveaway 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, GuildGiveawayFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildGiveaway
Find zero or more GuildGiveaways 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, GuildGiveawayFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildGiveaways
const guildGiveaways = await prisma.guildGiveaway.findMany()
// Get first 10 GuildGiveaways
const guildGiveaways = await prisma.guildGiveaway.findMany({ take: 10 })
// Only select the `dbId`
const guildGiveawayWithDbIdOnly = await prisma.guildGiveaway.findMany({ select: { dbId: true } })
Find zero or one GuildGiveaway that matches the filter.
Arguments to find a GuildGiveaway
Find one GuildGiveaway that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildGiveaway
Group by GuildGiveaway.
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 GuildGiveaway.
Arguments to update one GuildGiveaway.
Update zero or more GuildGiveaways.
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 GuildGiveaways and returns the data updated in the database.
Arguments to update many GuildGiveaways.
// Update many GuildGiveaways
const guildGiveaway = await prisma.guildGiveaway.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildGiveaways and only return the `dbId`
const guildGiveawayWithDbIdOnly = await prisma.guildGiveaway.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 GuildGiveaway.
Arguments to update or create a GuildGiveaway.
Fields of the GuildGiveaway model