···11+---
22+'@0no-co/graphqlsp': patch
33+---
44+55+Fix fragments not being resolved when they're assigned to a property on an arbitrary identifier as an identifier.
+10
packages/graphqlsp/src/ast/index.ts
···7070 let found = findNode(externalSource, fragment.textSpan.start);
7171 if (!found) return fragments;
72727373+ while (ts.isPropertyAccessExpression(found.parent)) found = found.parent;
7474+7375 if (
7476 ts.isVariableDeclaration(found.parent) &&
7577 found.parent.initializer &&
···7880 found = found.parent.initializer;
7981 } else if (ts.isPropertyAssignment(found.parent)) {
8082 found = found.parent.initializer;
8383+ } else if (ts.isBinaryExpression(found.parent)) {
8484+ found = found.parent.right;
8585+ }
8686+8787+ // If we found another identifier, we repeat trying to find the original
8888+ // fragment definition
8989+ if (ts.isIdentifier(found)) {
9090+ return unrollFragment(found, info, typeChecker);
8191 }
82928393 // Check whether we've got a `graphql()` or `gql()` call, by the