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