Allows you to perform aggregations operations on a GuildAutoPublish.
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 GuildAutoPublishes.
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, GuildAutoPublishCountArgs>Arguments to filter GuildAutoPublishes to count.
Create a GuildAutoPublish.
Arguments to create a GuildAutoPublish.
Create many GuildAutoPublishes.
Optional
args: SelectSubset<T, GuildAutoPublishCreateManyArgs<ExtArgs>>Arguments to create many GuildAutoPublishes.
Create many GuildAutoPublishes and returns the data saved in the database.
Optional
args: SelectSubset<T, GuildAutoPublishCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildAutoPublishes.
// Create many GuildAutoPublishes
const guildAutoPublish = await prisma.guildAutoPublish.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildAutoPublishes and only return the `Id`
const guildAutoPublishWithIdOnly = await prisma.guildAutoPublish.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 GuildAutoPublish.
Arguments to delete one GuildAutoPublish.
Delete zero or more GuildAutoPublishes.
Optional
args: SelectSubset<T, GuildAutoPublishDeleteManyArgs<ExtArgs>>Arguments to filter GuildAutoPublishes to delete.
Find the first GuildAutoPublish 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, GuildAutoPublishFindFirstArgs<ExtArgs>>Arguments to find a GuildAutoPublish
Find the first GuildAutoPublish 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, GuildAutoPublishFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildAutoPublish
Find zero or more GuildAutoPublishes 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, GuildAutoPublishFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildAutoPublishes
const guildAutoPublishes = await prisma.guildAutoPublish.findMany()
// Get first 10 GuildAutoPublishes
const guildAutoPublishes = await prisma.guildAutoPublish.findMany({ take: 10 })
// Only select the `Id`
const guildAutoPublishWithIdOnly = await prisma.guildAutoPublish.findMany({ select: { Id: true } })
Find zero or one GuildAutoPublish that matches the filter.
Arguments to find a GuildAutoPublish
Find one GuildAutoPublish that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildAutoPublish
Group by GuildAutoPublish.
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 GuildAutoPublish.
Arguments to update one GuildAutoPublish.
Update zero or more GuildAutoPublishes.
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 GuildAutoPublishes and returns the data updated in the database.
Arguments to update many GuildAutoPublishes.
// Update many GuildAutoPublishes
const guildAutoPublish = await prisma.guildAutoPublish.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildAutoPublishes and only return the `Id`
const guildAutoPublishWithIdOnly = await prisma.guildAutoPublish.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 GuildAutoPublish.
Arguments to update or create a GuildAutoPublish.
Fields of the GuildAutoPublish model