anmonteiro / reason-graphql-fullstack

Fullstack Reason + GraphQL Todo List App
MIT License
245 stars 19 forks source link

Thoughts on database layer? #9

Open nielmond opened 5 years ago

nielmond commented 5 years ago

This project is very cool, but I'm wondering about your (or anyone's) thoughts on how to implement a persistence/database layer. It seems there is more effort around generating a GraphQL schema from a database (e.g., Postgraphile, Hasura) rather than the other way around, as seems to be required with the approach here. There's a discussion about this aspect of the problem https://github.com/graphile/postgraphile/issues/592 here, but nothing particularly satisfying resulted. Maybe I'm just missing something and making this project persist the data is easier than it seems?