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