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