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