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