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