HI :heart: Anybody tried TypeGraphQL with Prisma? ...
# orm-help
a
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
Where is function implementation that is going to define schema too?
What do you mean?
a
I already made it. async users(parent, @Arg("data") args: UsersInput, @Ctx() context): Promise<User[]> { ... }
https://twitter.com/schickling/status/1080400713770024960 I think you should wait before rewriting everything to typegraphQL