Could not resolve to a Issue with the number, but it exists

community-help

#1
query($owner: String!, $name: String!, $number: Int!) {
    repository(owner: $owner, name: $name) {
        owner {
          id
        },
        name,
        issue(number: $number) {
            title,
            body,
            state,
            reactionGroups {
                content,
                users {
                    totalCount
                }
            },
            author {
                login
            },
            comments(first: 30) {
                totalCount,
                nodes {
                  body,
                  viewerCanDelete,
                  viewerCanReact,
                  author {
                      login
                  }
                }
            }
        }
    }
}

Variables

{
  "name":"react-native-windows",
   "number": 1248,
  "owner": "Microsoft"
}

But this Issue exists on GitHub, you can open it from the web version:

https://github.com/Microsoft/react-native-windows/pull/1248


#2

Because it’s a pull request, try:

query($owner: String!, $name: String!, $number: Int!) {
    repository(owner: $owner, name: $name) {
        owner {
          id
        },
        name,
        pullRequest(number: $number) {
            title,
            body,
            state,
            reactionGroups {
                content,
                users {
                    totalCount
                }
            },
            author {
                login
            },
            comments(first: 30) {
                totalCount,
                nodes {
                  body,
                  viewerCanDelete,
                  viewerCanReact,
                  author {
                      login
                  }
                }
            }
        }
    }
}

#3

Thank you, you are right, my miss.