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