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