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