Allows you to perform aggregations operations on a LevelRoles.
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 LevelRoles.
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, LevelRolesCountArgs>Arguments to filter LevelRoles to count.
Create a LevelRoles.
Arguments to create a LevelRoles.
Create many LevelRoles.
Optional
args: SelectSubset<T, LevelRolesCreateManyArgs<ExtArgs>>Arguments to create many LevelRoles.
Create many LevelRoles and returns the data saved in the database.
Optional
args: SelectSubset<T, LevelRolesCreateManyAndReturnArgs<ExtArgs>>Arguments to create many LevelRoles.
// Create many LevelRoles
const levelRoles = await prisma.levelRoles.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many LevelRoles and only return the `Id`
const levelRolesWithIdOnly = await prisma.levelRoles.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 LevelRoles.
Arguments to delete one LevelRoles.
Delete zero or more LevelRoles.
Optional
args: SelectSubset<T, LevelRolesDeleteManyArgs<ExtArgs>>Arguments to filter LevelRoles to delete.
Find the first LevelRoles 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, LevelRolesFindFirstArgs<ExtArgs>>Arguments to find a LevelRoles
Find the first LevelRoles 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, LevelRolesFindFirstOrThrowArgs<ExtArgs>>Arguments to find a LevelRoles
Find zero or more LevelRoles 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, LevelRolesFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one LevelRoles that matches the filter.
Arguments to find a LevelRoles
Find one LevelRoles that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a LevelRoles
Group by LevelRoles.
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 LevelRoles.
Arguments to update one LevelRoles.
Update zero or more LevelRoles.
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 LevelRoles and returns the data updated in the database.
Arguments to update many LevelRoles.
// Update many LevelRoles
const levelRoles = await prisma.levelRoles.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more LevelRoles and only return the `Id`
const levelRolesWithIdOnly = await prisma.levelRoles.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 LevelRoles.
Arguments to update or create a LevelRoles.
Fields of the LevelRoles model