Allows you to perform aggregations operations on a R2StorageGuild.
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 R2StorageGuilds.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, R2StorageGuildCountArgs<DefaultArgs>>Arguments to filter R2StorageGuilds to count.
Create a R2StorageGuild.
Arguments to create a R2StorageGuild.
Create many R2StorageGuilds.
Optionalargs: SelectSubset<T, R2StorageGuildCreateManyArgs<ExtArgs>>Arguments to create many R2StorageGuilds.
Create many R2StorageGuilds and returns the data saved in the database.
Optionalargs: SelectSubset<T, R2StorageGuildCreateManyAndReturnArgs<ExtArgs>>Arguments to create many R2StorageGuilds.
// Create many R2StorageGuilds
const r2StorageGuild = await prisma.r2StorageGuild.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many R2StorageGuilds and only return the `dbId`
const r2StorageGuildWithDbIdOnly = await prisma.r2StorageGuild.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 R2StorageGuild.
Arguments to delete one R2StorageGuild.
Delete zero or more R2StorageGuilds.
Optionalargs: SelectSubset<T, R2StorageGuildDeleteManyArgs<ExtArgs>>Arguments to filter R2StorageGuilds to delete.
Find the first R2StorageGuild 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, R2StorageGuildFindFirstArgs<ExtArgs>>Arguments to find a R2StorageGuild
Find the first R2StorageGuild 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, R2StorageGuildFindFirstOrThrowArgs<ExtArgs>>Arguments to find a R2StorageGuild
Find zero or more R2StorageGuilds 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, R2StorageGuildFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all R2StorageGuilds
const r2StorageGuilds = await prisma.r2StorageGuild.findMany()
// Get first 10 R2StorageGuilds
const r2StorageGuilds = await prisma.r2StorageGuild.findMany({ take: 10 })
// Only select the `dbId`
const r2StorageGuildWithDbIdOnly = await prisma.r2StorageGuild.findMany({ select: { dbId: true } })
Find zero or one R2StorageGuild that matches the filter.
Arguments to find a R2StorageGuild
Find one R2StorageGuild that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a R2StorageGuild
Group by R2StorageGuild.
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 R2StorageGuild.
Arguments to update one R2StorageGuild.
Update zero or more R2StorageGuilds.
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 R2StorageGuilds and returns the data updated in the database.
Arguments to update many R2StorageGuilds.
// Update many R2StorageGuilds
const r2StorageGuild = await prisma.r2StorageGuild.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more R2StorageGuilds and only return the `dbId`
const r2StorageGuildWithDbIdOnly = await prisma.r2StorageGuild.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 R2StorageGuild.
Arguments to update or create a R2StorageGuild.
Fields of the R2StorageGuild model