Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.07 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.07 KB

gql-todo

Introduction

This is a demo project implementing several graphQL-related techniques in go. And also to be served as a resource for my future referencing.

Get Started

How to set up environment

Run MySQL in docker

docker run --name gql-todo-mysql \
-p 3306:3306 \
-e MYSQL_ROOT_PASSWORD=myrootsecretpassword \
-e MYSQL_USER=user \
-e MYSQL_PASSWORD=mysecretpassword \
-e MYSQL_DATABASE=gql-todo \
-d mysql:8.0.32

Create gql-todo database

docker exec -it gql-todo-mysql bash

mysql -u root -p
#myrootsecretpassword

CREATE DATABASE gql-todo

Run Application

go run server.go

Feature Implementations

  • Custom Data Validation
  • Cursor-based pagination - Connections
  • Optimizing N+1 database queries

Related Resources