graphql 1.0.1-beta.8 graphql: ^1.0.1-beta.8 copied to clipboard
A stand-alone GraphQL client for Dart, bringing all the features from a modern GraphQL client to one easy to use package.
Example Dart Application #
This is a simple command line application to showcase how you can use the Dart GraphQL Client, without flutter.
To run this application:
-
First clone this repository and navigate to this directory
-
Install all dart dependencies
-
create a file
bin/local.dart
with the content:const String YOUR_PERSONAL_ACCESS_TOKEN = '<YOUR_PERSONAL_ACCESS_TOKEN>';
-
Then run the Application using the commands below:
- List Your Repositories
pub run main.dart
- Star Repository
pub run main.dart -a star --id <REPOSITORY_ID_HERE>
- Unstar Repository
pub run main.dart -a unstar --id <REPOSITORY_ID_HERE>
NB: Replace repository id in the last two commands with a real Github Repository ID. You can get by running the first command, IDs are printed on the console.