lindsaykwardell / nuxt-github-api

Source plugin for pulling data into Nuxt from the official GitHub v4 GraphQL API.
MIT License
24 stars 0 forks source link

wrong option name in doc #3

Open emretepedev opened 2 years ago

emretepedev commented 2 years ago

wrong option name in README.md. github should be replaced with githubApi.

in nuxt.config.js

{
  githubApi: {
    // token: required by the GitHub API
    token: process.env.GITHUB_API_TOKEN,

    // graphQLQuery: defaults to a search query
    graphQLQuery: `
      query GetUser($login: String!) {
        user(login: $login) {
          name
          avatarUrl
          bio
          isHireable
        }
      }
      `,

    // variables: Object which includes any GraphQL variables required by your query.
    variables: {
      login: 'lindsaykwardell'
    }
  }
}
bastianhilton commented 1 year ago

I'm getting this error with Nuxt3: Cannot read properties of undefined (reading 'githubApi'). Is it not supported for Nuxt 3 or something?

lindsaykwardell commented 1 year ago

@bastianhilton Nuxt 3 is currently not supported, I was waiting for it to reach a stable release before updating. I will release a major update later to support Nuxt 3.