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