Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/execution/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,16 @@ export interface ExecutionArgs {
}

/**
* Executor class responsible for implementing the Execution section of the GraphQL spec.
*
* This class is exported only to assist people in implementing their own executors
* without duplicating too much code and should be used only as last resort for cases
* such as experimental syntax or if certain features could not be contributed upstream.
*
* It is still part of the internal API and is versioned, so any changes to it are never
* considered breaking changes. If you still need to support multiple versions of the
* library, please use the `versionInfo` variable for version detection.
*
* @internal
*/
export class Executor {
Expand Down
2 changes: 2 additions & 0 deletions src/execution/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export type {
FormattedExecutionResult,
} from './executor';

export { Executor } from './executor';

export { execute, executeSync } from './execute';

export { subscribe, createSourceEventStream } from './subscribe';
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ export type {

/** Execute GraphQL queries. */
export {
Executor,
execute,
executeSync,
defaultFieldResolver,
Expand Down