Skip to content

m-sanders/graphql-tools-fork-43

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reproduction of graphql-tools-fork #43

In summary, when both renaming types fields and renaming object fields graphql-tools-fork fails to resolve data correctly.

Link

Running

nvm use
npm install
npm run dev

Visit: http://localhost:4000

Failure case

Query

query {
  node {
    id
    aString
    aList {
      aItem {
        _linkType
        ... on PLinkedItem {
          aString
        }
      }
    }
  }
}

Result

{
  "data": {
    "node": {
      "id": "123",
      "aString": "Hello, world",
      // This gets lost in the tranform even when it is returned
      "aList": null
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published