Skip to content

Commit

Permalink
Revert "fix: fix error on missing graphql query properties"
Browse files Browse the repository at this point in the history
This reverts commit 30f903f.
  • Loading branch information
wa0x6e committed Oct 25, 2023
1 parent 30f903f commit 08f2902
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/helpers/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,9 @@ export default function initMetrics(app: Express) {
if (query && operationName) {
const definition = parse(query).definitions.find(
// @ts-ignore
def => def.name?.value === operationName
def => def.name.value === operationName
);

if (!definition) {
return;
}

// @ts-ignore
const types = definition.selectionSet.selections.map(sel => sel.name.value);

Expand Down

0 comments on commit 08f2902

Please sign in to comment.