Allows you to perform aggregations operations on a Tickets.
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 Tickets.
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, TicketsCountArgs>Arguments to filter Tickets to count.
Create a Tickets.
Arguments to create a Tickets.
Create many Tickets.
Optional
args: SelectSubset<T, TicketsCreateManyArgs<ExtArgs>>Arguments to create many Tickets.
Create many Tickets and returns the data saved in the database.
Optional
args: SelectSubset<T, TicketsCreateManyAndReturnArgs<ExtArgs>>Arguments to create many Tickets.
// Create many Tickets
const tickets = await prisma.tickets.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many Tickets and only return the `Id`
const ticketsWithIdOnly = await prisma.tickets.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 Tickets.
Arguments to delete one Tickets.
Delete zero or more Tickets.
Optional
args: SelectSubset<T, TicketsDeleteManyArgs<ExtArgs>>Arguments to filter Tickets to delete.
Find the first Tickets 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, TicketsFindFirstArgs<ExtArgs>>Arguments to find a Tickets
Find the first Tickets 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, TicketsFindFirstOrThrowArgs<ExtArgs>>Arguments to find a Tickets
Find zero or more Tickets 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, TicketsFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one Tickets that matches the filter.
Arguments to find a Tickets
Find one Tickets that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a Tickets
Group by Tickets.
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 Tickets.
Arguments to update one Tickets.
Update zero or more Tickets.
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 Tickets and returns the data updated in the database.
Arguments to update many Tickets.
// Update many Tickets
const tickets = await prisma.tickets.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more Tickets and only return the `Id`
const ticketsWithIdOnly = await prisma.tickets.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 Tickets.
Arguments to update or create a Tickets.
Fields of the Tickets model