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