async-graphql / examples

217 stars 54 forks source link

Add a dataloader example for tide with postgres. #32

Closed ejez closed 3 years ago

ejez commented 3 years ago

This is the same example as tide/dataloader with sqlite changed to postgres. A comparison can be done with:

git diff --no-index dataloader dataloader-postgres

Note: The environment variable DATABASE_URL needs to be set:

DATABASE_URL="postgres:///mydb" cargo run