diff --git a/packages/hoppscotch-app/src/helpers/editor/linting/gqlQuery.ts b/packages/hoppscotch-app/src/helpers/editor/linting/gqlQuery.ts index f1dd029f3..146748eff 100644 --- a/packages/hoppscotch-app/src/helpers/editor/linting/gqlQuery.ts +++ b/packages/hoppscotch-app/src/helpers/editor/linting/gqlQuery.ts @@ -28,8 +28,8 @@ export const createGQLQueryLinter: ( ch: locations![0].column - 1, }, to: { - line: locations![0].line - 1, - ch: locations![0].column, + line: locations![0].line, + ch: locations![0].column - 1, }, message, severity: "error",