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