[GO] Unable to bind to interface error when using apollo federation with gqlgen

When I tried using gqlgen to use Apollo Federation for microservices, I got a ʻunable to bind to interface error on go run github.com/99designs/gqlgen`.

I was mapping a go struct to a schema, and I was getting an error there. Looking at the gqlgen code, it seems that the interface cannot be satisfied unless it is added to the go struct, so when I added the IsEntity () method as shown below, the error disappeared.

type User struct {
    ID: int
    Name: string
}

func (m User) IsEntity() {}

Recommended Posts

Unable to bind to interface error when using apollo federation with gqlgen
How to deal with OAuth2 error when using Google APIs from Python
How to deal with SessionNotCreatedException when using Selenium
Fatal error in launcher: Unable to create process using'"'
How to deal with "Type Error: No matching signature found" error when using pandas fillna
Countermeasures for "Unable to get upper directory" error when using Deep Learning ② created from scratch with spyder of ANACONDA
I got an error when using Tensorboard with Pytorch
I got a Value Error when using JUMAN ++ with PyKNP
How to not load images when using PhantomJS with Selenium
How to resolve CSRF Protection when using AngularJS with Django
Things to keep in mind when using Python with AtCoder
Things to keep in mind when using cgi with python.
Error when playing with python
[Beanstalk] What to do when an error occurs with import uuid
I get an error when trying to install maec 4.0.1.0 with pip
[Python] Error and solution memo when using venv with pyenv + anaconda
When WSL Distro fails to start (error: "WslRegisterDistribution failed with error: 0x800706be.")
When you want to send an object with requests using flask
"Value Error: Unable to configure handler'file_output_handler'" when starting a python program
Unable to install Python with pyenv
When using MeCab with virtualenv python
Precautions when using six with Python 2.5
When you want to use it as it is when using it with lambda memo
How to deal with SSL error when connecting to S3 with boto of Python
What to do if an error occurs when importing numpy with VScode
Error due to UnicodeDecodeError when reading CSV file with Python [For beginners]
[AWS] How to deal with WordPress "An error occurred when cropping an image."