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