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