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