This GraphQL server is used to aggregate chain data as well as miscellaneous data to be used on the LikeDAO SPA
- Go 1.18
make vendor
make codegen
docker-compose up
By default docker will start the server with GIN_MODE=debug, visit http://localhost:8080/graphql
- Apply changes to existing schemas
- Update the codegen configuration if needed
- Run
make codegen
- Implement resolver in the resolvers folder
- Write tests if needed
Gin -> GraphQL Handler -> Resolver -> Data Loader -> Query -> DB
Gin -> GraphQL Handler -> Resolver -> Mutator -> DB
make migration-new NAME=migration-name
make migration-up
make migration-down
make migration-status