This repository uses plain GraphQL, Reason and Apollo.
Have something you don't understand? Join us on Discord!
Run this project:
npm install npm run start:server npm start # in a new tab
Once your express server is running with
npm run start:server,
open a new tab and start the client with
this will run your client written in ReasonML.
Then modify whichever
.re file in
src/simple/ and the page will reflect the changes automatically.
You can see and modify the graphQL schema, running in express in
apollo-server/schema. (install nodemon to automatically restart the server)
The client is build using ReasonReact.
dataTodoContainer.re uses graphql from react-apollo to enhance ReasonML components with queries and mutations.
todoContainer.re uses the query and mutations
If you're looking for a very simple/basic example: https://github.com/Gregoirevda/graphql-reason-simple-example