Allows you to perform aggregations operations on a DiscordGuildAddon.
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 DiscordGuildAddons.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: Subset<T, DiscordGuildAddonCountArgs>Arguments to filter DiscordGuildAddons to count.
Create a DiscordGuildAddon.
Arguments to create a DiscordGuildAddon.
Create many DiscordGuildAddons.
Optional
args: SelectSubset<T, DiscordGuildAddonCreateManyArgs<ExtArgs>>Arguments to create many DiscordGuildAddons.
Create many DiscordGuildAddons and returns the data saved in the database.
Optional
args: SelectSubset<T, DiscordGuildAddonCreateManyAndReturnArgs<ExtArgs>>Arguments to create many DiscordGuildAddons.
// Create many DiscordGuildAddons
const discordGuildAddon = await prisma.discordGuildAddon.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many DiscordGuildAddons and only return the `Id`
const discordGuildAddonWithIdOnly = await prisma.discordGuildAddon.createManyAndReturn({
select: { Id: 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 DiscordGuildAddon.
Arguments to delete one DiscordGuildAddon.
Delete zero or more DiscordGuildAddons.
Optional
args: SelectSubset<T, DiscordGuildAddonDeleteManyArgs<ExtArgs>>Arguments to filter DiscordGuildAddons to delete.
Find the first DiscordGuildAddon 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
Optional
args: SelectSubset<T, DiscordGuildAddonFindFirstArgs<ExtArgs>>Arguments to find a DiscordGuildAddon
Find the first DiscordGuildAddon 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
Optional
args: SelectSubset<T, DiscordGuildAddonFindFirstOrThrowArgs<ExtArgs>>Arguments to find a DiscordGuildAddon
Find zero or more DiscordGuildAddons 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
Optional
args: SelectSubset<T, DiscordGuildAddonFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all DiscordGuildAddons
const discordGuildAddons = await prisma.discordGuildAddon.findMany()
// Get first 10 DiscordGuildAddons
const discordGuildAddons = await prisma.discordGuildAddon.findMany({ take: 10 })
// Only select the `Id`
const discordGuildAddonWithIdOnly = await prisma.discordGuildAddon.findMany({ select: { Id: true } })
Find zero or one DiscordGuildAddon that matches the filter.
Arguments to find a DiscordGuildAddon
Find one DiscordGuildAddon that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a DiscordGuildAddon
Group by DiscordGuildAddon.
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 DiscordGuildAddon.
Arguments to update one DiscordGuildAddon.
Update zero or more DiscordGuildAddons.
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 DiscordGuildAddons and returns the data updated in the database.
Arguments to update many DiscordGuildAddons.
// Update many DiscordGuildAddons
const discordGuildAddon = await prisma.discordGuildAddon.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more DiscordGuildAddons and only return the `Id`
const discordGuildAddonWithIdOnly = await prisma.discordGuildAddon.updateManyAndReturn({
select: { Id: 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 DiscordGuildAddon.
Arguments to update or create a DiscordGuildAddon.
Fields of the DiscordGuildAddon model