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