---
title: "Comment by Marcos Souza Junior on \"How To use GraphQL with Go\" | Hashnode"
description: "Cant run the server due an args mismatch in UpdateBook (book_repo.go and schema.resolvers.go) Error message: cannot use &amp;mutationResolver{…} (value of type"
url: "https://hashnode.com/posts/how-to-use-graphql-with-go/61e4dd858a425719c1735487/comment/62783202c2a8c278735c824c"
---

[Discussion](https://hashnode.com/posts/how-to-use-graphql-with-go/61e4dd858a425719c1735487)

Comment [How To use GraphQL with Go](https://hashnode.com/posts/how-to-use-graphql-with-go/61e4dd858a425719c1735487)

[Marcos Souza Junior](https://hashnode.com/@lalislau)

[May 8, 2022](https://hashnode.com/posts/how-to-use-graphql-with-go/61e4dd858a425719c1735487/comment/62783202c2a8c278735c824c)

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)

[iyiola](https://hashnode.com/@iyiola)

[Aug 6, 2022](https://hashnode.com/posts/how-to-use-graphql-with-go/61e4dd858a425719c1735487/comment/62783202c2a8c278735c824c#reply-62eea6e2e3a3793580e00f7d)

Hi, Marcos. I will check this and edit the article.
