Allows you to perform aggregations operations on a VerificationGatesPermission.
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 VerificationGatesPermissions.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: Subset<T, VerificationGatesPermissionCountArgs>Arguments to filter VerificationGatesPermissions to count.
Create a VerificationGatesPermission.
Arguments to create a VerificationGatesPermission.
Create many VerificationGatesPermissions.
Optional
args: SelectSubset<T, VerificationGatesPermissionCreateManyArgs<ExtArgs>>Arguments to create many VerificationGatesPermissions.
Create many VerificationGatesPermissions and returns the data saved in the database.
Optional
args: SelectSubset<T, VerificationGatesPermissionCreateManyAndReturnArgs<ExtArgs>>Arguments to create many VerificationGatesPermissions.
// Create many VerificationGatesPermissions
const verificationGatesPermission = await prisma.verificationGatesPermission.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many VerificationGatesPermissions and only return the `Id`
const verificationGatesPermissionWithIdOnly = await prisma.verificationGatesPermission.createManyAndReturn({
select: { Id: 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 VerificationGatesPermission.
Arguments to delete one VerificationGatesPermission.
Delete zero or more VerificationGatesPermissions.
Optional
args: SelectSubset<T, VerificationGatesPermissionDeleteManyArgs<ExtArgs>>Arguments to filter VerificationGatesPermissions to delete.
Find the first VerificationGatesPermission 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
Optional
args: SelectSubset<T, VerificationGatesPermissionFindFirstArgs<ExtArgs>>Arguments to find a VerificationGatesPermission
Find the first VerificationGatesPermission 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
Optional
args: SelectSubset<T, VerificationGatesPermissionFindFirstOrThrowArgs<ExtArgs>>Arguments to find a VerificationGatesPermission
Find zero or more VerificationGatesPermissions 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
Optional
args: SelectSubset<T, VerificationGatesPermissionFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all VerificationGatesPermissions
const verificationGatesPermissions = await prisma.verificationGatesPermission.findMany()
// Get first 10 VerificationGatesPermissions
const verificationGatesPermissions = await prisma.verificationGatesPermission.findMany({ take: 10 })
// Only select the `Id`
const verificationGatesPermissionWithIdOnly = await prisma.verificationGatesPermission.findMany({ select: { Id: true } })
Find zero or one VerificationGatesPermission that matches the filter.
Arguments to find a VerificationGatesPermission
Find one VerificationGatesPermission that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a VerificationGatesPermission
Group by VerificationGatesPermission.
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 VerificationGatesPermission.
Arguments to update one VerificationGatesPermission.
Update zero or more VerificationGatesPermissions.
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 VerificationGatesPermissions and returns the data updated in the database.
Arguments to update many VerificationGatesPermissions.
// Update many VerificationGatesPermissions
const verificationGatesPermission = await prisma.verificationGatesPermission.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more VerificationGatesPermissions and only return the `Id`
const verificationGatesPermissionWithIdOnly = await prisma.verificationGatesPermission.updateManyAndReturn({
select: { Id: 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 VerificationGatesPermission.
Arguments to update or create a VerificationGatesPermission.
// Update or create a VerificationGatesPermission
const verificationGatesPermission = await prisma.verificationGatesPermission.upsert({
create: {
// ... data to create a VerificationGatesPermission
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the VerificationGatesPermission we want to update
}
})
Fields of the VerificationGatesPermission model