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