Skip to content

Unable to parse string identifier #24752

Discussion options

You must be logged in to vote

I fixed it already.

The error came from me using query userRepos(${queryString}: String!) { } instead of

const getUserRepo = (queryString) => `
    query {
        user(login: "${queryString}") {
            avatarUrl
            name
            bio
            login
            repositories(first: 20) {
              nodes {
                name
                url
                createdAt
                stargazerCount
                forkCount
                description
                primaryLanguage {
                  name
                  color
                }
              }
            }
        }
    }
`;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@skeggse
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment