Allows you to perform aggregations operations on a GuildYoutubeNotifications.
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 GuildYoutubeNotifications.
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, GuildYoutubeNotificationsCountArgs>Arguments to filter GuildYoutubeNotifications to count.
Create a GuildYoutubeNotifications.
Arguments to create a GuildYoutubeNotifications.
Create many GuildYoutubeNotifications.
Optional
args: SelectSubset<T, GuildYoutubeNotificationsCreateManyArgs<ExtArgs>>Arguments to create many GuildYoutubeNotifications.
Create many GuildYoutubeNotifications and returns the data saved in the database.
Optional
args: SelectSubset<T, GuildYoutubeNotificationsCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildYoutubeNotifications.
// Create many GuildYoutubeNotifications
const guildYoutubeNotifications = await prisma.guildYoutubeNotifications.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildYoutubeNotifications and only return the `Id`
const guildYoutubeNotificationsWithIdOnly = await prisma.guildYoutubeNotifications.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 GuildYoutubeNotifications.
Arguments to delete one GuildYoutubeNotifications.
Delete zero or more GuildYoutubeNotifications.
Optional
args: SelectSubset<T, GuildYoutubeNotificationsDeleteManyArgs<ExtArgs>>Arguments to filter GuildYoutubeNotifications to delete.
Find the first GuildYoutubeNotifications 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, GuildYoutubeNotificationsFindFirstArgs<ExtArgs>>Arguments to find a GuildYoutubeNotifications
Find the first GuildYoutubeNotifications 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, GuildYoutubeNotificationsFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildYoutubeNotifications
Find zero or more GuildYoutubeNotifications 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, GuildYoutubeNotificationsFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildYoutubeNotifications
const guildYoutubeNotifications = await prisma.guildYoutubeNotifications.findMany()
// Get first 10 GuildYoutubeNotifications
const guildYoutubeNotifications = await prisma.guildYoutubeNotifications.findMany({ take: 10 })
// Only select the `Id`
const guildYoutubeNotificationsWithIdOnly = await prisma.guildYoutubeNotifications.findMany({ select: { Id: true } })
Find zero or one GuildYoutubeNotifications that matches the filter.
Arguments to find a GuildYoutubeNotifications
Find one GuildYoutubeNotifications that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildYoutubeNotifications
Group by GuildYoutubeNotifications.
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 GuildYoutubeNotifications.
Arguments to update one GuildYoutubeNotifications.
Update zero or more GuildYoutubeNotifications.
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 GuildYoutubeNotifications and returns the data updated in the database.
Arguments to update many GuildYoutubeNotifications.
// Update many GuildYoutubeNotifications
const guildYoutubeNotifications = await prisma.guildYoutubeNotifications.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildYoutubeNotifications and only return the `Id`
const guildYoutubeNotificationsWithIdOnly = await prisma.guildYoutubeNotifications.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 GuildYoutubeNotifications.
Arguments to update or create a GuildYoutubeNotifications.
// Update or create a GuildYoutubeNotifications
const guildYoutubeNotifications = await prisma.guildYoutubeNotifications.upsert({
create: {
// ... data to create a GuildYoutubeNotifications
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the GuildYoutubeNotifications we want to update
}
})
Fields of the GuildYoutubeNotifications model