Skip to main content
Community Plugin
View plugin on GitHub
See starters using this

gatsby-source-trakttv

Source plugin for pulling data into Traktv account to Wacthed History endpoint.

Install

yarn install gatsby-source-trakttv

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-trakttv`,
    options: {
      api_key: 'INSERT_APIKEY',
      username: 'INSERT_USERNAME'      
    },
  },
];

Example Queries

query {
    TrakttvWatchedMovies{
        id,
        movie {
            title
        }
    }
}
query {
    TrakttvWatchedShows{
        id,
        show {
            title
        }
    }
}