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