[QUESTION]/[BUG]: GraphQL input document with multiple queries (operations) fails with "Trying to add top-level with existing name"
Author: herrernstCreated Sep 24, 2026Updated Sep 24, 2026
Labelsbug
Hi,
I have a GraphQL document with multiple queries (operations). When trying to convert this document to whatever (tried Kotlin and Swift), Quicktype errors with "Trying to add top-level with existing name". Is there a way to convert such documents? I am using multiple queries inside one document because I want to reuse (i.e. not duplicate) GraphQL fragments. Or is fragment reuse somehow possible otherwise?
Thanks!
[email protected] NPM package via CLI
Source: glideapps/quicktype