Skip to content

Commit

Permalink
fix(persisted): use full resolved text in hash
Browse files Browse the repository at this point in the history
  • Loading branch information
felamaslen authored Jun 7, 2024
1 parent 178858a commit 6df50d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphqlsp/src/persisted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const generateHashForDocument = (
resolvedText = `${resolvedText}\n\n${print(fragmentDefinition)}`;
});

return createHash('sha256').update(text).digest('hex');
return createHash('sha256').update(resolvedText).digest('hex');
};

export const getDocumentReferenceFromTypeQuery = (
Expand Down

0 comments on commit 6df50d9

Please sign in to comment.