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