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