pgutkowski / KGraphQL

Pure Kotlin GraphQL implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested Fragments fail with property does not exist

mdnorman opened this issue · comments

I've created a test that demonstrates this at mdnorman@d97189d

This query doesn't work, even though it should:

            {
                hero {
                    id
                    ...heroName
                }
            }

            fragment heroName on Hero {
                name {
                    real
                }
                ...heroNameDetails
            }

            fragment heroNameDetails on Hero {
                name {
                    asHero
                }
            }

These types of queries are built all the time with Relay (https://facebook.github.io/relay/)