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