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