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