Mirror: The small sibling of the graphql package, slimmed down for client-side libraries.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix parsing inline fragments without type conditions

+10 -7
+10 -7
alias/language/parser.mjs
··· 199 199 :${ignored}? 200 200 `; 201 201 202 - const inlineFragment = match(Kind.INLINE_FRAGMENT, x => ({ 203 - kind: x.tag, 204 - typeCondition: x[0], 205 - directives: x[1], 206 - selectionSet: x[2] 207 - }))` 202 + const inlineFragment = match(Kind.INLINE_FRAGMENT, x => { 203 + let i = 0; 204 + return { 205 + kind: x.tag, 206 + typeCondition: x[i].tag === '_typecondition' ? x[i++] : undefined, 207 + directives: x[i++], 208 + selectionSet: x[i] 209 + }; 210 + })` 208 211 (?: ${'...'} ${ignored}?) 209 - ${typeCondition} 212 + ${typeCondition}? 210 213 ${directives} 211 214 ${selectionSet} 212 215 `;