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