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