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