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