Giter Site home page Giter Site logo

graph-url's Introduction

Graph URL

Run GraphQL queries right from the terminal.

Installation

Install it once globally with yarn:

yarn global add graph-url

Or use npm:

npm install -g graph-url

graph-url's People

Contributors

eveporcello avatar moontahoe avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

moontahoe

graph-url's Issues

Documentation

The Readme.md needs better overall instructions and documentation on how to use this tool. Ideas to include:

  • All Features
  • Examples
  • Changelog
  • on deck features

Refactor Tests

At present the test is hitting the student example graph for lift status on www.moonhighway.com. We should mock that request so that tests can be easily run locally without internet access.

Authorization Solution

We need the ability to send requests to secure endpoints by incorporating authorization headers. It would be nice to allow users to login with an oauth2 provider and save their token for future requests. Maybe this should be several issues?

main requirements

  • Ability to attach a token to a request gurl -u <URL> -f <FILE> -q <QUERY> -t, --t <TOKEN>
  • Ability to attache username and password to a request gurl --user --password
  • Can receive data from secure graphs like github or facebook?

additional requirements

  • app can log user in with oauth
  • app can save their token
  • app can log in with popular social logins

Subscriptions

We need a way to run a graphql subscription and update the terminal results when the subscription pushes new data.

  gurl --file myQuery.graphql --subscription watchLifts

Watching Files

We need a way to watch local query files for changes and then automatically re-run the query when the change occurs.

  gurl --file myQuery.graphql --watch

Queries and Mutations

We need a way to tell gurl to run a query by name or a mutation by name:

Run a single query

   gurl --fileName myQuery.graphql --query getNames

Run multiple queries

   gurl --fileName myQuery.graphql --query getNames, getDates

Run a mutation

  gurl --fileName myMutation.graphql --mutation setNames

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.