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