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