https://www.youtube.com/watch?v=A6lDNao00WQ&list=PLzQWIQOqeUSNwXcneWYJHUREAIucJ5UZn&index=1
# Create new migration (example)
λ|penguin gqlmeetup: migrate create -ext sql -dir postgres/migrations create_users
# Apply migrations (up/down)
λ|penguin gqlmeetup: source .env # to get $POSTGRESQL_URL
λ|penguin gqlmeetup: migrate -path "postgres/migrations" -database "$POSTGRESQL_URL" up
# Seed Data
λ|penguin gqlmeetup: psql -d meetup_dev -a -f postgres/seeds.sql # where meetup_dev is the dbname
Using dataloaden: https://github.com/vektah/dataloaden
λ|penguin gqlmeetup: cd graphql
λ|penguin gqlmeetup/graphql: go run github.com/vektah/dataloaden UserLoader string '*github.com/vincentmac/gqlmeetup/models.User'