sample project of gqlgen with echo
$ git clone https://github.com/ebkn/gqlgen-with-echo-sample.git
$ docker-compose up
$ docker exec -it gqlgen-with-echo-sammple_app sh
(inside docker container) # go run .
$ curl http://localhost:3000/login -X POST -d username=username -d password=password
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
open http://localhost:3000/playground
set header (at bottom menuHTTP HEADERS
)
{
"Authorization": "Bearer <input your token>"
}
write query
query {
user {
username
}
}