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