Dante
10/12/2021, 5:50 AMconst usersWithArgs = Prisma.validator<Prisma.UserArgs>()({
include: {
_count: {
select: {
followers: true,
followings: true,
},
},
},
});
type UsersWithArgs = Prisma.UserGetPayload<typeof usersWithArgs>[];
export const QueryTypeDefs = gql`
type Query {
users: [User]! # Wanna use type UsersWithArgs in Here
}Dante
10/12/2021, 5:51 AMChris Tsongas
10/12/2021, 4:14 PMChris Tsongas
10/12/2021, 4:15 PM