Skip to content

Commit

Permalink
fix validation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Dec 31, 2022
1 parent 6b359b1 commit 89c7b8d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/validation/rules/SingleFieldSubscriptionsRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Kind } from '../../language/kinds.js';
import type { ASTVisitor } from '../../language/visitor.js';

import { collectFields } from '../../execution/collectFields.js';
import type { VariableValues } from '../../execution/values.js';

import type { ValidationContext } from '../ValidationContext.js';

Expand All @@ -31,9 +32,7 @@ export function SingleFieldSubscriptionsRule(
const subscriptionType = schema.getSubscriptionType();
if (subscriptionType) {
const operationName = node.name ? node.name.value : null;
const variableValues: {
[variable: string]: any;
} = Object.create(null);
const variableValues: VariableValues = Object.create(null);
const document = context.getDocument();
const fragments: ObjMap<FragmentDefinitionNode> = Object.create(null);
for (const definition of document.definitions) {
Expand Down

0 comments on commit 89c7b8d

Please sign in to comment.