Allows you to perform aggregations operations on a UserActiveGuildSubscription.
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 UserActiveGuildSubscriptions.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, UserActiveGuildSubscriptionCountArgs<DefaultArgs>>Arguments to filter UserActiveGuildSubscriptions to count.
Create a UserActiveGuildSubscription.
Arguments to create a UserActiveGuildSubscription.
Create many UserActiveGuildSubscriptions.
Optionalargs: SelectSubset<T, UserActiveGuildSubscriptionCreateManyArgs<ExtArgs>>Arguments to create many UserActiveGuildSubscriptions.
Create many UserActiveGuildSubscriptions and returns the data saved in the database.
Optionalargs: SelectSubset<T, UserActiveGuildSubscriptionCreateManyAndReturnArgs<ExtArgs>>Arguments to create many UserActiveGuildSubscriptions.
// Create many UserActiveGuildSubscriptions
const userActiveGuildSubscription = await prisma.userActiveGuildSubscription.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many UserActiveGuildSubscriptions and only return the `dbId`
const userActiveGuildSubscriptionWithDbIdOnly = await prisma.userActiveGuildSubscription.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 UserActiveGuildSubscription.
Arguments to delete one UserActiveGuildSubscription.
Delete zero or more UserActiveGuildSubscriptions.
Optionalargs: SelectSubset<T, UserActiveGuildSubscriptionDeleteManyArgs<ExtArgs>>Arguments to filter UserActiveGuildSubscriptions to delete.
Find the first UserActiveGuildSubscription 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, UserActiveGuildSubscriptionFindFirstArgs<ExtArgs>>Arguments to find a UserActiveGuildSubscription
Find the first UserActiveGuildSubscription 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, UserActiveGuildSubscriptionFindFirstOrThrowArgs<ExtArgs>>Arguments to find a UserActiveGuildSubscription
Find zero or more UserActiveGuildSubscriptions 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, UserActiveGuildSubscriptionFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all UserActiveGuildSubscriptions
const userActiveGuildSubscriptions = await prisma.userActiveGuildSubscription.findMany()
// Get first 10 UserActiveGuildSubscriptions
const userActiveGuildSubscriptions = await prisma.userActiveGuildSubscription.findMany({ take: 10 })
// Only select the `dbId`
const userActiveGuildSubscriptionWithDbIdOnly = await prisma.userActiveGuildSubscription.findMany({ select: { dbId: true } })
Find zero or one UserActiveGuildSubscription that matches the filter.
Arguments to find a UserActiveGuildSubscription
Find one UserActiveGuildSubscription that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a UserActiveGuildSubscription
Group by UserActiveGuildSubscription.
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 UserActiveGuildSubscription.
Arguments to update one UserActiveGuildSubscription.
Update zero or more UserActiveGuildSubscriptions.
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 UserActiveGuildSubscriptions and returns the data updated in the database.
Arguments to update many UserActiveGuildSubscriptions.
// Update many UserActiveGuildSubscriptions
const userActiveGuildSubscription = await prisma.userActiveGuildSubscription.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more UserActiveGuildSubscriptions and only return the `dbId`
const userActiveGuildSubscriptionWithDbIdOnly = await prisma.userActiveGuildSubscription.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 UserActiveGuildSubscription.
Arguments to update or create a UserActiveGuildSubscription.
// Update or create a UserActiveGuildSubscription
const userActiveGuildSubscription = await prisma.userActiveGuildSubscription.upsert({
create: {
// ... data to create a UserActiveGuildSubscription
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the UserActiveGuildSubscription we want to update
}
})
Fields of the UserActiveGuildSubscription model