Allows you to perform aggregations operations on a GuildGameChangelog.
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 GuildGameChangelogs.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildGameChangelogCountArgs<DefaultArgs>>Arguments to filter GuildGameChangelogs to count.
Create a GuildGameChangelog.
Arguments to create a GuildGameChangelog.
Create many GuildGameChangelogs.
Optionalargs: SelectSubset<T, GuildGameChangelogCreateManyArgs<ExtArgs>>Arguments to create many GuildGameChangelogs.
Create many GuildGameChangelogs and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildGameChangelogCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildGameChangelogs.
// Create many GuildGameChangelogs
const guildGameChangelog = await prisma.guildGameChangelog.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildGameChangelogs and only return the `dbId`
const guildGameChangelogWithDbIdOnly = await prisma.guildGameChangelog.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 GuildGameChangelog.
Arguments to delete one GuildGameChangelog.
Delete zero or more GuildGameChangelogs.
Optionalargs: SelectSubset<T, GuildGameChangelogDeleteManyArgs<ExtArgs>>Arguments to filter GuildGameChangelogs to delete.
Find the first GuildGameChangelog 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, GuildGameChangelogFindFirstArgs<ExtArgs>>Arguments to find a GuildGameChangelog
Find the first GuildGameChangelog 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, GuildGameChangelogFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildGameChangelog
Find zero or more GuildGameChangelogs 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, GuildGameChangelogFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildGameChangelogs
const guildGameChangelogs = await prisma.guildGameChangelog.findMany()
// Get first 10 GuildGameChangelogs
const guildGameChangelogs = await prisma.guildGameChangelog.findMany({ take: 10 })
// Only select the `dbId`
const guildGameChangelogWithDbIdOnly = await prisma.guildGameChangelog.findMany({ select: { dbId: true } })
Find zero or one GuildGameChangelog that matches the filter.
Arguments to find a GuildGameChangelog
Find one GuildGameChangelog that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildGameChangelog
Group by GuildGameChangelog.
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 GuildGameChangelog.
Arguments to update one GuildGameChangelog.
Update zero or more GuildGameChangelogs.
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 GuildGameChangelogs and returns the data updated in the database.
Arguments to update many GuildGameChangelogs.
// Update many GuildGameChangelogs
const guildGameChangelog = await prisma.guildGameChangelog.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildGameChangelogs and only return the `dbId`
const guildGameChangelogWithDbIdOnly = await prisma.guildGameChangelog.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 GuildGameChangelog.
Arguments to update or create a GuildGameChangelog.
// Update or create a GuildGameChangelog
const guildGameChangelog = await prisma.guildGameChangelog.upsert({
create: {
// ... data to create a GuildGameChangelog
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the GuildGameChangelog we want to update
}
})
Fields of the GuildGameChangelog model