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