Allows you to perform aggregations operations on a TicketFeedback.
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 TicketFeedbacks.
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, TicketFeedbackCountArgs>Arguments to filter TicketFeedbacks to count.
Create a TicketFeedback.
Arguments to create a TicketFeedback.
Create many TicketFeedbacks.
Optional
args: SelectSubset<T, TicketFeedbackCreateManyArgs<ExtArgs>>Arguments to create many TicketFeedbacks.
Create many TicketFeedbacks and returns the data saved in the database.
Optional
args: SelectSubset<T, TicketFeedbackCreateManyAndReturnArgs<ExtArgs>>Arguments to create many TicketFeedbacks.
// Create many TicketFeedbacks
const ticketFeedback = await prisma.ticketFeedback.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many TicketFeedbacks and only return the `Id`
const ticketFeedbackWithIdOnly = await prisma.ticketFeedback.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 TicketFeedback.
Arguments to delete one TicketFeedback.
Delete zero or more TicketFeedbacks.
Optional
args: SelectSubset<T, TicketFeedbackDeleteManyArgs<ExtArgs>>Arguments to filter TicketFeedbacks to delete.
Find the first TicketFeedback 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, TicketFeedbackFindFirstArgs<ExtArgs>>Arguments to find a TicketFeedback
Find the first TicketFeedback 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, TicketFeedbackFindFirstOrThrowArgs<ExtArgs>>Arguments to find a TicketFeedback
Find zero or more TicketFeedbacks 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, TicketFeedbackFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all TicketFeedbacks
const ticketFeedbacks = await prisma.ticketFeedback.findMany()
// Get first 10 TicketFeedbacks
const ticketFeedbacks = await prisma.ticketFeedback.findMany({ take: 10 })
// Only select the `Id`
const ticketFeedbackWithIdOnly = await prisma.ticketFeedback.findMany({ select: { Id: true } })
Find zero or one TicketFeedback that matches the filter.
Arguments to find a TicketFeedback
Find one TicketFeedback that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a TicketFeedback
Group by TicketFeedback.
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 TicketFeedback.
Arguments to update one TicketFeedback.
Update zero or more TicketFeedbacks.
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 TicketFeedbacks and returns the data updated in the database.
Arguments to update many TicketFeedbacks.
// Update many TicketFeedbacks
const ticketFeedback = await prisma.ticketFeedback.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more TicketFeedbacks and only return the `Id`
const ticketFeedbackWithIdOnly = await prisma.ticketFeedback.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 TicketFeedback.
Arguments to update or create a TicketFeedback.
Fields of the TicketFeedback model