Allows you to perform aggregations operations on a UserNotifications.
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 UserNotifications.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, UserNotificationsCountArgs<DefaultArgs>>Arguments to filter UserNotifications to count.
Create a UserNotifications.
Arguments to create a UserNotifications.
Create many UserNotifications.
Optionalargs: SelectSubset<T, UserNotificationsCreateManyArgs<ExtArgs>>Arguments to create many UserNotifications.
Create many UserNotifications and returns the data saved in the database.
Optionalargs: SelectSubset<T, UserNotificationsCreateManyAndReturnArgs<ExtArgs>>Arguments to create many UserNotifications.
// Create many UserNotifications
const userNotifications = await prisma.userNotifications.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many UserNotifications and only return the `dbId`
const userNotificationsWithDbIdOnly = await prisma.userNotifications.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 UserNotifications.
Arguments to delete one UserNotifications.
Delete zero or more UserNotifications.
Optionalargs: SelectSubset<T, UserNotificationsDeleteManyArgs<ExtArgs>>Arguments to filter UserNotifications to delete.
Find the first UserNotifications 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, UserNotificationsFindFirstArgs<ExtArgs>>Arguments to find a UserNotifications
Find the first UserNotifications 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, UserNotificationsFindFirstOrThrowArgs<ExtArgs>>Arguments to find a UserNotifications
Find zero or more UserNotifications 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, UserNotificationsFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all UserNotifications
const userNotifications = await prisma.userNotifications.findMany()
// Get first 10 UserNotifications
const userNotifications = await prisma.userNotifications.findMany({ take: 10 })
// Only select the `dbId`
const userNotificationsWithDbIdOnly = await prisma.userNotifications.findMany({ select: { dbId: true } })
Find zero or one UserNotifications that matches the filter.
Arguments to find a UserNotifications
Find one UserNotifications that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a UserNotifications
Group by UserNotifications.
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 UserNotifications.
Arguments to update one UserNotifications.
Update zero or more UserNotifications.
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 UserNotifications and returns the data updated in the database.
Arguments to update many UserNotifications.
// Update many UserNotifications
const userNotifications = await prisma.userNotifications.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more UserNotifications and only return the `dbId`
const userNotificationsWithDbIdOnly = await prisma.userNotifications.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 UserNotifications.
Arguments to update or create a UserNotifications.
Fields of the UserNotifications model