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