tgreyuk / fpl-api-graphql

A GraphQL node wrapper for the Fantasy Premier League (fantasy.premierleague.com) REST apis.
MIT License
9 stars 8 forks source link

Adds leagueClassic query #1

Closed jaychu closed 5 years ago

jaychu commented 5 years ago

Hi there,

Loved your npm module, and the code is easy to read and fantastic. I noticed that you left behind everything you need for pulling league information so I decided to try and contribute to your module. Did my best to extend functionality for leauges based on your style but let me know if I've missed anything.

Thanks and have a good day! Justin

tgreyuk commented 5 years ago

@jaychu Thanks for the contribution. I did tweak the structure slightly and also added a parameter for paging like so:

  leagues {
    classic(id:313, page:2) {
      league {
        name  
      }
      standings {
        number
      }
    }
  }

cheers... tom