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