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