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