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