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