Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 1

filterBy is not supported for issues as description in docs

Docs: https://developer.github.com/v4/object/repository/#issues

 

Query I used:

 

query { 
  repository(name: "vscode", owner: "microsoft") {
    issues(first: 10, filterBy: {createdBy: "sneezry", states: OPEN}) {
      nodes {
        comments(last: 1) {
          nodes {
            author {
              login
            },
            createdAt
          }
        }
      }
    }
  }

The result I got:

 

{
  "errors": [
    {
      "path": [
        "query",
        "repository",
        "issues",
        "filterBy"
      ],
      "extensions": {
        "code": "argumentNotAccepted",
        "name": "issues",
        "typeName": "Field",
        "argumentName": "filterBy"
      },
      "locations": [
        {
          "line": 8,
          "column": 23
        }
      ],
      "message": "Field 'issues' doesn't accept argument 'filterBy'"
    }
  ]
}