A tiny server which exposes GraphQL API for Formula 1 race schedule. Data is retrieved from Linked Metadata.
This package usage (gqlgen)[https://gqlgen.com/getting-started/] for GraphQL
- Create the project skeleton
go run github.com/99designs/gqlgen init
go mod tidy
- Run server
go run server.go
- Run code generation
# `resolver.go` contains the following comment at the top, which generates the code
# //go:generate go run github.com/99designs/gqlgen generate
go generate ./..
- Or run the generator
go run github.com/99designs/gqlgen generate