Skip to content

Commit

Permalink
change class name
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Jun 5, 2023
1 parent 9f6e474 commit 6a9546a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/execution/IncrementalPublisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export type FormattedIncrementalResult<
| FormattedIncrementalStreamResult<TData, TExtensions>;

/** @internal */
export class Publisher {
export class IncrementalPublisher {
initialResult: {
children: Set<IncrementalDataRecord>;
isCompleted: boolean;
Expand Down
6 changes: 3 additions & 3 deletions src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import type {
StreamItemsRecord,
SubsequentIncrementalExecutionResult,
} from './IncrementalPublisher.js';
import { Publisher } from './IncrementalPublisher.js';
import { IncrementalPublisher } from './IncrementalPublisher.js';
import { mapAsyncIterable } from './mapAsyncIterable.js';
import {
getArgumentValues,
Expand Down Expand Up @@ -129,7 +129,7 @@ export interface ExecutionContext {
typeResolver: GraphQLTypeResolver<any, any>;
subscribeFieldResolver: GraphQLFieldResolver<any, any>;
errors: Array<GraphQLError>;
publisher: Publisher;
publisher: IncrementalPublisher;
}

/**
Expand Down Expand Up @@ -444,7 +444,7 @@ export function buildExecutionContext(
fieldResolver: fieldResolver ?? defaultFieldResolver,
typeResolver: typeResolver ?? defaultTypeResolver,
subscribeFieldResolver: subscribeFieldResolver ?? defaultFieldResolver,
publisher: new Publisher(),
publisher: new IncrementalPublisher(),
errors: [],
};
}
Expand Down

0 comments on commit 6a9546a

Please sign in to comment.