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