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