Skip to content
Integrating graphQL with reasonML
Branch: master
Clone or download
Latest commit 2af397b Jan 9, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Update doc Aug 2, 2017
.gitignore Add webpack-dev-server Jul 31, 2017
README.md Update README.md Jan 9, 2018
bsconfig.json
package.json add express server Aug 2, 2017
webpack.config.js
yarn-error.log
yarn.lock

README.md

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

You can’t perform that action at this time.