Allows you to perform aggregations operations on a AccessToken.
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 AccessTokens.
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, AccessTokenCountArgs<DefaultArgs>>Arguments to filter AccessTokens to count.
Create a AccessToken.
Arguments to create a AccessToken.
Create many AccessTokens.
Optionalargs: Prisma.SelectSubset<T, AccessTokenCreateManyArgs<ExtArgs>>Arguments to create many AccessTokens.
Create many AccessTokens and returns the data saved in the database.
Optionalargs: Prisma.SelectSubset<T, AccessTokenCreateManyAndReturnArgs<ExtArgs>>Arguments to create many AccessTokens.
// Create many AccessTokens
const accessToken = await prisma.accessToken.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many AccessTokens and only return the `id`
const accessTokenWithIdOnly = await prisma.accessToken.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 AccessToken.
Arguments to delete one AccessToken.
Delete zero or more AccessTokens.
Optionalargs: Prisma.SelectSubset<T, AccessTokenDeleteManyArgs<ExtArgs>>Arguments to filter AccessTokens to delete.
Find the first AccessToken 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, AccessTokenFindFirstArgs<ExtArgs>>Arguments to find a AccessToken
Find the first AccessToken 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, AccessTokenFindFirstOrThrowArgs<ExtArgs>>Arguments to find a AccessToken
Find zero or more AccessTokens 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, AccessTokenFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one AccessToken that matches the filter.
Arguments to find a AccessToken
Find one AccessToken that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a AccessToken
Group by AccessToken.
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 AccessToken.
Arguments to update one AccessToken.
Update zero or more AccessTokens.
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 AccessTokens and returns the data updated in the database.
Arguments to update many AccessTokens.
// Update many AccessTokens
const accessToken = await prisma.accessToken.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more AccessTokens and only return the `id`
const accessTokenWithIdOnly = await prisma.accessToken.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 AccessToken.
Arguments to update or create a AccessToken.
Fields of the AccessToken model