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