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