Skip to content
Permalink
Browse files

Upgrade graphql_ppx_re to latest v0.3.2

This also includes graphql-codegen packages which allows us to
recreate graphql_schema.json file from the GraphQL endpoint, and
updates documentation to cover its usage.
  • Loading branch information
harigopal committed Oct 30, 2019
1 parent 95eddd3 commit 3e59957651a6326bf4fa1f60712c816a39151272
Showing with 1,143 additions and 6,135 deletions.
  1. +9 −4 README.md
  2. +5 −0 codegen.yml
  3. +1 −6,103 graphql_schema.json
  4. +4 −1 package.json
  5. +1,124 −27 yarn.lock
@@ -75,11 +75,16 @@ If installation of of `pg` gem crashes, asking for `libpq-fe.h`, install the gem

#### Setup ReasonML environment

If you've installed all node modules using _Yarn_, then the basic environment should be ready at this point. However,
you'll also need to install the [Reason CLI toolchain](https://github.com/reasonml/reason-cli) to get all add-on
features to work properly in VSCode:
If you've installed all node modules using _Yarn_, then the basic environment should be ready at this point.

`npm install -g reason-cli@latest-macos` (OSX) or `@latest-linux` (Linux)
If you make any changes to the GraphQL schema, you'll need to update the `graphql_schema.json` file by running an
introspection query:

```
yarn run graphql-codegen
```

The GraphQL end-point is configured in the `codegen.yml` file.

### Set credentials for local database

@@ -0,0 +1,5 @@
schema: 'http://school.localhost/graphql?introspection=true'
generates:
graphql_schema.json:
plugins:
- introspection

0 comments on commit 3e59957

Please sign in to comment.
You can’t perform that action at this time.