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