Questions tagged [gqlgen]

gqlgen is a Go library for building GraphQL servers. Use this tag for questions about using the github.com/99designs/gqlgen library. Use also the [go] tag and tags about web server frameworks you use gqlgen with, as appropriate.

The gqlgen project includes a runnable command that generates Go types from .graphqls schema files and most of the glue code to build a GraphQL server.

The gqlgen repository is located at: https://github.com/99designs/gqlgen

79 questions
0
votes
1 answer

Unmarshal json array into struct array

I'm using Mysql 8. I'm also utilizing 99designs/gqlgen to autogenerate the structs based on the GraphQL schema. I was to re-use the same structs when scanning MySql responses. And on top of that, while prototyping, I want to have some JSONs in my…
yuranos
  • 8,799
  • 9
  • 56
  • 65
0
votes
1 answer

Adding authentication middleware with go-chi router for GraphQL with gqlgen

package main import ( "github.com/go-chi/chi" "go-graphql-demo/graph" "go-graphql-demo/graph/generated" "log" "net/http" "os" "github.com/99designs/gqlgen/graphql/handler" …
Shubham
  • 211
  • 2
  • 13
0
votes
1 answer

how to enable gqlgen server for CORS issue?

GOAL: Svelte app running on port 5000 wants to query data from gqlgen GraphQL server running on port 8080, both on localhost. I tried to query a public graphql API such as https://api.react-finland.fi/graphql just to test if my Svelte app…
Annie
  • 345
  • 2
  • 5
  • 18
-1
votes
1 answer

go get fails for :github.com/99designs/gqlgen"

I am trying to download "github.com/99designs/gqlgen" package. I want to use it as package rather than module. I just want to start new service in graphql. But when I try to download "github.com/99designs/gqlgen" package, I am getting following…
avishkar
  • 69
  • 2
  • 8
1 2 3 4 5
6