2.0.10 • Published 3 years ago

gatsby-source-nba v2.0.10

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

gatsby-source-nba

Source plugin for pulling data into Gatsby from NBA API

Features

  • Provides information about NBA Players pulling the data from the NBA API

Install

npm install --save gatsby-source-nba

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: 'gatsby-source-nba',
  },
];

How to query

You can query nodes created from the NBA API using GraphQL like the following:

Note: Learn to use the GraphQL tool and Ctrl+Spacebar at http://localhost:3000/___graphql to discover the types and properties of your GraphQL model.

{
  allNbaPlayer {
    edges {
      node {
        id
        firstName
        lastName
      }
    }
  }
}

TO-DO

  • Complete player infor with statistics and team information

  • Add teams information + roster

  • Make the plugin configurable to choose with info you want to get pulled by the API.

2.0.10

3 years ago

2.0.7

4 years ago

2.0.8

4 years ago

2.0.6

4 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago