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