How To use GraphQL with Go
Introduction to what we are building
Prerequisite
What is graphql
Setup the project
Install required packages
setup the database
setup the env file
setup the glqen gen
reset schema file
generate from the resolver file
write functions to get info/slap...
iyiola.hashnode.dev9 min read
Marcos Souza Junior
Student in Go
Cant run the server due an args mismatch in UpdateBook (book_repo.go and schema.resolvers.go) Error message: cannot use &mutationResolver{…} (value of type mutationResolver) as type generated.MutationResolver in return statement: mutationResolver does not implement generated.MutationResolver (wrong type for UpdateBook method) have UpdateBook(ctx context.Context, id int, input model.BookInput) (string, error) want UpdateBook(ctx context.Context, id int) (string, error)