Skip to content
Integrating graphQL with reasonML
Branch: master
Clone or download
Latest commit 2af397b Jan 9, 2018
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 Update Jan 9, 2018
package.json add express server Aug 2, 2017

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. uses graphql from react-apollo to enhance ReasonML components with queries and mutations. uses the query and mutations

If you're looking for a very simple/basic example:

You can’t perform that action at this time.