Allows you to perform aggregations operations on a Client.
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 Clients.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, ClientCountArgs<DefaultArgs>>Arguments to filter Clients to count.
Create a Client.
Arguments to create a Client.
Create many Clients.
Optionalargs: SelectSubset<T, ClientCreateManyArgs<ExtArgs>>Arguments to create many Clients.
Create many Clients and returns the data saved in the database.
Optionalargs: SelectSubset<T, ClientCreateManyAndReturnArgs<ExtArgs>>Arguments to create many Clients.
// Create many Clients
const client = await prisma.client.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many Clients and only return the `dbId`
const clientWithDbIdOnly = await prisma.client.createManyAndReturn({
select: { dbId: 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 Client.
Arguments to delete one Client.
Delete zero or more Clients.
Optionalargs: SelectSubset<T, ClientDeleteManyArgs<ExtArgs>>Arguments to filter Clients to delete.
Find the first Client 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, ClientFindFirstArgs<ExtArgs>>Arguments to find a Client
Find the first Client 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, ClientFindFirstOrThrowArgs<ExtArgs>>Arguments to find a Client
Find zero or more Clients 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, ClientFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one Client that matches the filter.
Arguments to find a Client
Find one Client that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a Client
Group by Client.
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 Client.
Arguments to update one Client.
Update zero or more Clients.
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 Clients and returns the data updated in the database.
Arguments to update many Clients.
// Update many Clients
const client = await prisma.client.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more Clients and only return the `dbId`
const clientWithDbIdOnly = await prisma.client.updateManyAndReturn({
select: { dbId: 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 Client.
Arguments to update or create a Client.
Fields of the Client model