An open API service indexing awesome lists of open source software.

https://github.com/rmosolgo/graphql-pro-operation-store-example

An example app using GraphQL-Pro's persisted queries
https://github.com/rmosolgo/graphql-pro-operation-store-example

Last synced: 3 months ago
JSON representation

An example app using GraphQL-Pro's persisted queries

Awesome Lists containing this project

README

          

# GraphQL Pro Operation Store Demo

A running demo of [persisted operations with GraphQL-Ruby](#)

You can trigger GraphQL queries via the UI:

![operation-store-demo](https://user-images.githubusercontent.com/2231765/44499461-ec310f00-a651-11e8-91f8-e1fdb1911bd0.gif)

But only the operation ID and variables are sent over the wire:

image

You can see the persisted queries in the GraphQL-Pro dashboard:

image

## Setup & Dev

- Clone the repo: `git clone git@github.com:rmosolgo/graphql-pro-operation-store-example.git && cd graphql-pro-operation-store-example`
- Configure your graphql-pro credentials: `bundle config gems.graphql.pro your-credential-here`
- Install dependencies: `bundle install && yarn install`
- Prep the database: `bundle exec rake db:migrate db:seed`
- Sync the operations: `yarn run sync-graphql`
- Start the server: `bundle exec rails s`
- Visit http://localhost:3000/