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