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