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