Allows you to perform aggregations operations on a ModerationScout.
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 ModerationScouts.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, ModerationScoutCountArgs>Arguments to filter ModerationScouts to count.
Create a ModerationScout.
Arguments to create a ModerationScout.
Create many ModerationScouts.
Optionalargs: SelectSubset<T, ModerationScoutCreateManyArgs<ExtArgs>>Arguments to create many ModerationScouts.
Create many ModerationScouts and returns the data saved in the database.
Optionalargs: SelectSubset<T, ModerationScoutCreateManyAndReturnArgs<ExtArgs>>Arguments to create many ModerationScouts.
// Create many ModerationScouts
const moderationScout = await prisma.moderationScout.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many ModerationScouts and only return the `Id`
const moderationScoutWithIdOnly = await prisma.moderationScout.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 ModerationScout.
Arguments to delete one ModerationScout.
Delete zero or more ModerationScouts.
Optionalargs: SelectSubset<T, ModerationScoutDeleteManyArgs<ExtArgs>>Arguments to filter ModerationScouts to delete.
Find the first ModerationScout 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: SelectSubset<T, ModerationScoutFindFirstArgs<ExtArgs>>Arguments to find a ModerationScout
Find the first ModerationScout 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: SelectSubset<T, ModerationScoutFindFirstOrThrowArgs<ExtArgs>>Arguments to find a ModerationScout
Find zero or more ModerationScouts 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: SelectSubset<T, ModerationScoutFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all ModerationScouts
const moderationScouts = await prisma.moderationScout.findMany()
// Get first 10 ModerationScouts
const moderationScouts = await prisma.moderationScout.findMany({ take: 10 })
// Only select the `Id`
const moderationScoutWithIdOnly = await prisma.moderationScout.findMany({ select: { Id: true } })
Find zero or one ModerationScout that matches the filter.
Arguments to find a ModerationScout
Find one ModerationScout that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a ModerationScout
Group by ModerationScout.
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 ModerationScout.
Arguments to update one ModerationScout.
Update zero or more ModerationScouts.
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 ModerationScouts and returns the data updated in the database.
Arguments to update many ModerationScouts.
// Update many ModerationScouts
const moderationScout = await prisma.moderationScout.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more ModerationScouts and only return the `Id`
const moderationScoutWithIdOnly = await prisma.moderationScout.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 ModerationScout.
Arguments to update or create a ModerationScout.
Fields of the ModerationScout model