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