Allows you to perform aggregations operations on a SyncedChannelLinkMessages.
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 SyncedChannelLinkMessages.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: Subset<T, SyncedChannelLinkMessagesCountArgs>Arguments to filter SyncedChannelLinkMessages to count.
Create a SyncedChannelLinkMessages.
Arguments to create a SyncedChannelLinkMessages.
Create many SyncedChannelLinkMessages.
Optional
args: SelectSubset<T, SyncedChannelLinkMessagesCreateManyArgs<ExtArgs>>Arguments to create many SyncedChannelLinkMessages.
Create many SyncedChannelLinkMessages and returns the data saved in the database.
Optional
args: SelectSubset<T, SyncedChannelLinkMessagesCreateManyAndReturnArgs<ExtArgs>>Arguments to create many SyncedChannelLinkMessages.
// Create many SyncedChannelLinkMessages
const syncedChannelLinkMessages = await prisma.syncedChannelLinkMessages.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many SyncedChannelLinkMessages and only return the `Id`
const syncedChannelLinkMessagesWithIdOnly = await prisma.syncedChannelLinkMessages.createManyAndReturn({
select: { Id: 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 SyncedChannelLinkMessages.
Arguments to delete one SyncedChannelLinkMessages.
Delete zero or more SyncedChannelLinkMessages.
Optional
args: SelectSubset<T, SyncedChannelLinkMessagesDeleteManyArgs<ExtArgs>>Arguments to filter SyncedChannelLinkMessages to delete.
Find the first SyncedChannelLinkMessages 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
Optional
args: SelectSubset<T, SyncedChannelLinkMessagesFindFirstArgs<ExtArgs>>Arguments to find a SyncedChannelLinkMessages
Find the first SyncedChannelLinkMessages 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
Optional
args: SelectSubset<T, SyncedChannelLinkMessagesFindFirstOrThrowArgs<ExtArgs>>Arguments to find a SyncedChannelLinkMessages
Find zero or more SyncedChannelLinkMessages 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
Optional
args: SelectSubset<T, SyncedChannelLinkMessagesFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all SyncedChannelLinkMessages
const syncedChannelLinkMessages = await prisma.syncedChannelLinkMessages.findMany()
// Get first 10 SyncedChannelLinkMessages
const syncedChannelLinkMessages = await prisma.syncedChannelLinkMessages.findMany({ take: 10 })
// Only select the `Id`
const syncedChannelLinkMessagesWithIdOnly = await prisma.syncedChannelLinkMessages.findMany({ select: { Id: true } })
Find zero or one SyncedChannelLinkMessages that matches the filter.
Arguments to find a SyncedChannelLinkMessages
Find one SyncedChannelLinkMessages that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a SyncedChannelLinkMessages
Group by SyncedChannelLinkMessages.
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 SyncedChannelLinkMessages.
Arguments to update one SyncedChannelLinkMessages.
Update zero or more SyncedChannelLinkMessages.
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 SyncedChannelLinkMessages and returns the data updated in the database.
Arguments to update many SyncedChannelLinkMessages.
// Update many SyncedChannelLinkMessages
const syncedChannelLinkMessages = await prisma.syncedChannelLinkMessages.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more SyncedChannelLinkMessages and only return the `Id`
const syncedChannelLinkMessagesWithIdOnly = await prisma.syncedChannelLinkMessages.updateManyAndReturn({
select: { Id: 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 SyncedChannelLinkMessages.
Arguments to update or create a SyncedChannelLinkMessages.
// Update or create a SyncedChannelLinkMessages
const syncedChannelLinkMessages = await prisma.syncedChannelLinkMessages.upsert({
create: {
// ... data to create a SyncedChannelLinkMessages
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the SyncedChannelLinkMessages we want to update
}
})
Fields of the SyncedChannelLinkMessages model