Allows you to perform aggregations operations on a ModerationScoutReports.
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 ModerationScoutReports.
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, ModerationScoutReportsCountArgs>Arguments to filter ModerationScoutReports to count.
Create a ModerationScoutReports.
Arguments to create a ModerationScoutReports.
Create many ModerationScoutReports.
Optional
args: SelectSubset<T, ModerationScoutReportsCreateManyArgs<ExtArgs>>Arguments to create many ModerationScoutReports.
Create many ModerationScoutReports and returns the data saved in the database.
Optional
args: SelectSubset<T, ModerationScoutReportsCreateManyAndReturnArgs<ExtArgs>>Arguments to create many ModerationScoutReports.
// Create many ModerationScoutReports
const moderationScoutReports = await prisma.moderationScoutReports.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many ModerationScoutReports and only return the `Id`
const moderationScoutReportsWithIdOnly = await prisma.moderationScoutReports.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 ModerationScoutReports.
Arguments to delete one ModerationScoutReports.
Delete zero or more ModerationScoutReports.
Optional
args: SelectSubset<T, ModerationScoutReportsDeleteManyArgs<ExtArgs>>Arguments to filter ModerationScoutReports to delete.
Find the first ModerationScoutReports 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, ModerationScoutReportsFindFirstArgs<ExtArgs>>Arguments to find a ModerationScoutReports
Find the first ModerationScoutReports 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, ModerationScoutReportsFindFirstOrThrowArgs<ExtArgs>>Arguments to find a ModerationScoutReports
Find zero or more ModerationScoutReports 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, ModerationScoutReportsFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all ModerationScoutReports
const moderationScoutReports = await prisma.moderationScoutReports.findMany()
// Get first 10 ModerationScoutReports
const moderationScoutReports = await prisma.moderationScoutReports.findMany({ take: 10 })
// Only select the `Id`
const moderationScoutReportsWithIdOnly = await prisma.moderationScoutReports.findMany({ select: { Id: true } })
Find zero or one ModerationScoutReports that matches the filter.
Arguments to find a ModerationScoutReports
Find one ModerationScoutReports that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a ModerationScoutReports
Group by ModerationScoutReports.
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 ModerationScoutReports.
Arguments to update one ModerationScoutReports.
Update zero or more ModerationScoutReports.
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 ModerationScoutReports and returns the data updated in the database.
Arguments to update many ModerationScoutReports.
// Update many ModerationScoutReports
const moderationScoutReports = await prisma.moderationScoutReports.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more ModerationScoutReports and only return the `Id`
const moderationScoutReportsWithIdOnly = await prisma.moderationScoutReports.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 ModerationScoutReports.
Arguments to update or create a ModerationScoutReports.
// Update or create a ModerationScoutReports
const moderationScoutReports = await prisma.moderationScoutReports.upsert({
create: {
// ... data to create a ModerationScoutReports
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the ModerationScoutReports we want to update
}
})
Fields of the ModerationScoutReports model