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