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