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