If there is a schema like the following, setting reuse_fragments causes the generated GBookFragment2_author to implement not only GAuthorFragment but also the non-existent type GBookFragment_author.
# book.graphql
type Book {
title: String
author: Person
}
type Person {
name: String
age: Int
height: Int
weight: Int
}
fragment AuthorFragment on Person {
name
age
}
fragment BookFragment on Book {
title
author {
...AuthorFragment
}
}
# book2.graphql
fragment BookFragment2 on Book {
...BookFragment
author {
height
weight
}
}
If BookFragment and BookFragment2 are defined in the same file, this issue did not occur.
If there is a schema like the following, setting
reuse_fragments
causes the generatedGBookFragment2_author
to implement not onlyGAuthorFragment
but also the non-existent typeGBookFragment_author
.If
BookFragment
andBookFragment2
are defined in the same file, this issue did not occur.