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