HI ❤️
Anybody tried TypeGraphQL with Prisma?
I am not able to create even simple Query because schema definition is different then function implementation :C
Without TypeGraphQL: users(filter: String): [User!]! + users(parent, args, context)
With TypeGraphQL: @Query(returns => [User]) async users(parent, args, context): Promise<User[]> { ...} 😮 ?! Where is function implementation that is going to define schema too?
l
lyteq
01/02/2019, 9:30 PM
Where is function implementation that is going to define schema too?
What do you mean?
a
Artur Malak
01/02/2019, 10:22 PM
I already made it.
async users(parent, @Arg("data") args: UsersInput, @Ctx() context): Promise<User[]> { ... }