/reason-graphql-todo-list

Integrating graphQL with reasonML

Primary LanguageOCaml

This repository uses plain GraphQL, Reason and Apollo.

If you're looking for an easier way to use GraphQL, checkout the official reason-apollo bindings

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 npm start 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