github.com/opiuman/genqlient@v1.0.0/generate/testdata/queries/ComplexNamedFragments.graphql (about) 1 fragment QueryFragment on Query { 2 ...InnerQueryFragment 3 } 4 5 fragment InnerQueryFragment on Query { 6 randomItem { 7 id name 8 ...VideoFields 9 ...ContentFields 10 } 11 randomLeaf { 12 ...VideoFields 13 ...MoreVideoFields 14 ...ContentFields 15 } 16 otherLeaf: randomLeaf { 17 ... on Video { 18 ...MoreVideoFields 19 ...ContentFields 20 } 21 ...ContentFields 22 } 23 } 24 25 fragment VideoFields on Video { 26 id name url duration thumbnail { id } 27 ...ContentFields 28 } 29 30 # @genqlient(pointer: true) 31 fragment MoreVideoFields on Video { 32 id 33 parent { 34 name url 35 ...ContentFields 36 # @genqlient(pointer: false) 37 children { 38 ...VideoFields 39 } 40 } 41 } 42 43 fragment ContentFields on Content { 44 name url 45 } 46 47 query ComplexNamedFragments { 48 ... on Query { ...QueryFragment } 49 }