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