Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 937 Bytes

utilities.md

File metadata and controls

22 lines (18 loc) · 937 Bytes

Tools and Utilities

GraphiQL App

TL;DR: With a Reaction App running using docker-compose, open the Local Storage panel in your browser dev tools and copy the value of Meteor.loginToken into the Header value field.

  1. Follow the instructions to install the GraphiQL app.
  2. Launch the app
  3. Click the button labeled Edit HTTP Headers
  4. Click + Add Header
  5. For Header name enter meteor-login-token
  6. For Header value you'll need your Meteor.loginToken from the Getting Started guide.
  7. Make your first query by setting GraphQL Endpoint to http://localhost:3030/graphql-alpha and querying for the viewer's name:
{
  viewer {
    name
  }
}

For more on your getting started with GraphQL and Reaction: https://docs.reactioncommerce.com/reaction-docs/master/graphql-intro