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