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