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