graphql 5.2.2
SDKdartflutter
Platformandroidioswindowslinuxmacosweb
A stand-alone GraphQL client for Dart, bringing all the features from a modern GraphQL client to one easy to use package.
graphql/client.dart Example Application
This is a simple command line application to showcase how you can use the Dart GraphQL Client, without flutter.
To run this application:
Setup:
- First clone this repository and navigate to this directory
- Install all dart dependencies
- replace
<YOUR_PERSONAL_ACCESS_TOKEN>inlib/local.dartwith your GitHub token
Usage:
# List repositories
pub run example
# Star Repository (you can get repository ids from `pub run example`)
pub run example -a star --id $REPOSITORY_ID
# Unstar Repository
pub run example -a unstar --id $REPOSITORY_ID
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.