Deprecated: GraphQL packages for react-admin can be found in the main repository at https://github.com/marmelab/react-admin
This is very WIP. It currently requires changes on admin-on-rest which have not been published yet.
Documentation is on its way.
About this repository
You'll find three packages in this repository:
aor-graphql-client: base implementation of graphql for admin-on-rest. It provides the basis for real implementations such as the graphcool client.
aor-graphql-client-graphcool: real implementation tailored for graphcool dialect of graphql for admin-on-rest
admin-on-rest-graphql-demo: a graphcool version of the official admin-on-rest demo.
- Better documentation and samples
- Provide an example implementation of a custom graphql dialect
- Includes a custom saga for real time updates based on graphql subscriptions
We included some make commands to ease common tasks:
make install: runs the installation command from lerna, ensuring packages are linked correctly.
make watch: will compile and watch changes on the aor-graphql-client and aor-graphql-client-graphcool packages
make run: will starts the demo
You should run both commands in separate terminals when playing with the source code.
make watch-test: will run the tests in watch mode.
make test: will run the tests once.