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