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