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