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