Skip to content

Commit

Permalink
Merge branch 'add-validation-for-up-to-date-po' of github.com:0no-co/…
Browse files Browse the repository at this point in the history
…GraphQLSP into add-validation-for-up-to-date-po
  • Loading branch information
JoviDeCroock committed Apr 22, 2024
2 parents 5f3dc27 + 38f69be commit c33a6b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changeset/many-nails-wait.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
'@0no-co/graphqlsp': patch
'@0no-co/graphqlsp': minor
---

Add validation step to check that the persisted-operations hash has been updated when the document changes
2 changes: 1 addition & 1 deletion packages/graphqlsp/src/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export function getGraphQLDiagnostics(
category: ts.DiagnosticCategory.Warning,
code: MISSMATCH_HASH_TO_DOCUMENT,
file: source,
messageText: `The Persisted-Document hash is not up to date with the linked document.`,
messageText: `The persisted document's hash is outdated`,
start: callExpression.arguments.pos,
length:
callExpression.arguments.end - callExpression.arguments.pos,
Expand Down

0 comments on commit c33a6b0

Please sign in to comment.