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