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