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