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