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