In summary, when both renaming types fields and renaming object fields graphql-tools-fork fails to resolve data correctly.
nvm use
npm install
npm run dev
Visit: http://localhost:4000
query {
node {
id
aString
aList {
aItem {
_linkType
... on PLinkedItem {
aString
}
}
}
}
}
{
"data": {
"node": {
"id": "123",
"aString": "Hello, world",
// This gets lost in the tranform even when it is returned
"aList": null
}
}
}