gqlgen
Go generate based graphql server library
...You need to tell gqlgen that it should only fetch friends if the user requested it. gqlgen will be able to automatically bind to strings or ints for models you have written yourself. gqlgen is a schema-first library, before writing code, you describe your API using the GraphQL Schema Definition Language. By default this goes into a file called schema.graphql but you can break it up into as many different files as you want. By default gqlgen will use any models in the model directory that match on name.