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