---
title: "Discussion on \"How To use GraphQL with Go\" | Hashnode"
description: "Discussion on \"How To use GraphQL with Go\". How to build a GraphQL API with Go and Postgres using glqgen and gorm."
url: "https://hashnode.com/posts/how-to-use-graphql-with-go/61e4dd858a425719c1735487"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To use GraphQL with Go](https://iyiola.hashnode.dev/how-to-use-graphql-with-go?utm_source=hashnode&utm_medium=feed)

How to build a GraphQL API with Go and Postgres using glqgen and gorm.

Jan 17, 2022 · 9 min read · iyiola.hashnode.dev  
Read the article

-   [#graphql](https://hashnode.com/tag/graphql)
-   [#go](https://hashnode.com/tag/go)

## Written by

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

@iyiola · Nigeria

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

Guide, Source, and Control.

A Backend engineer with deep interest in databases and distributed systems.

## Responses 1

Markdown supported · ⌘↵ to post

[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.
