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