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