Skip to content

Handle interfaces correctly #9

@numso

Description

@numso

Looks like we don't parse and validate interfaces correctly. The following query should work on the Github API:

  query "GetRepo" do
    repository(owner: ^owner, name: ^name) do
      owner do # this line fails
        id
      end
    end
  end

Instead, we get Did not expect to find a subquery on Repository.owner.

Owner has the type:

{
  "kind": "NON_NULL",
  "name": null,
  "ofType": {
    "kind": "INTERFACE",
    "name": "RepositoryOwner",
    "ofType": null
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions